Increment the value of the semaphore.
(self)
| 127 | return sval.value |
| 128 | |
| 129 | def post(self): |
| 130 | """Increment the value of the semaphore.""" |
| 131 | if self._sem_post(self.sem_p): |
| 132 | raise SemError() |
| 133 | |
| 134 | def timedwait(self, timeout=0, no_eintr=True): |
| 135 | """Decrement the value of the semaphore, waiting up to timeout if |
no test coverage detected