Exemple #1
0
 def unlock(self):
     if self.locked==False: return 0
     rv = possem.sem_post(self.sem)
     if rv==0: self.locked=False
     return rv
Exemple #2
0
 def unlock(self):
     return possem.sem_post(self.sem)
Exemple #3
0
 def unlock(self):
     if self.locked == False: return 0
     rv = possem.sem_post(self.sem)
     if rv == 0: self.locked = False
     return rv