Exemple #1
0
 def kill_lock(self):
     with critical_section("kill-({})[{}]".format(self.__class__.__name__, str(self.pk))):
         yield
Exemple #2
0
 def kill_lock(self):
     with critical_section("kill-({})[{}]".format(
             type(self).__name__, str(self.pk))):
         yield
Exemple #3
0
 def metadata_lock(self):
     with critical_section("metadata-({})[{}]".format(self.__class__.__name__, str(self.pk))):
         yield
Exemple #4
0
 def metadata_lock(self):
     with critical_section("metadata-({})[{}]".format(
             type(self).__name__, str(self.pk))):
         yield