Esempio n. 1
0
 def __exit__(self, type, value, traceback):
     self.depth -= 1
     if self.depth <= 0:
         self.locked_by = None
         Lock.__exit__(self, type, value, traceback)
Esempio n. 2
0
 def __exit__(self, type, value, traceback):
     self.depth -= 1
     if self.depth <= 0:
         self.locked_by = None
         Lock.__exit__(self, type, value, traceback)