Increment the value of the semaphore, wait up to timeout or wait indefinitly.
(self, timeout=None, no_eintr=True)
| 168 | raise SemError() |
| 169 | |
| 170 | def wait(self, timeout=None, no_eintr=True): |
| 171 | """Increment the value of the semaphore, wait up to timeout or wait |
| 172 | indefinitly.""" |
| 173 | if timeout: |
| 174 | return self.timedwait(timeout, no_eintr) |
| 175 | while True: |
| 176 | if self._sem_wait(self.sem_p): |
| 177 | if not no_eintr or self._error().contents.value != EINTR: |
| 178 | raise SemError() |
| 179 | else: |
| 180 | return |
no test coverage detected