text: # Copyright (C) 2009, Hyves (Startphone Ltd.)
  #
  # This module is part of the Concurrence Framework and is released under
  # the New BSD License: http://www.opensource.org/licenses/bsd-license.php
  
  def allocate_lock():
      import threading
      return threading.Lock()
  