Returns a semaphore object
(self, value=1)
| 78 | return Condition(lock, ctx=self.get_context()) |
| 79 | |
| 80 | def Semaphore(self, value=1): |
| 81 | '''Returns a semaphore object''' |
| 82 | from .synchronize import Semaphore |
| 83 | return Semaphore(value, ctx=self.get_context()) |
| 84 | |
| 85 | def BoundedSemaphore(self, value=1): |
| 86 | '''Returns a bounded semaphore object''' |