Example #1
0
 def get_creation_lock(self, key):
     return file_synchronizer(
             identifier="dbmcontainer/funclock/%s/%s" % (
                 self.namespace, key
             ),
             lock_dir=self.lock_dir
             )
Example #2
0
 def get_access_lock(self):
     return file_synchronizer(identifier=self.namespace,
                              lock_dir=self.lock_dir)