MCPcopy Create free account
hub / github.com/ActiveState/code / post

Method post

recipes/Python/577655_POSIX_Semaphore_FreeBSD/recipe-577655.py:129–132  ·  view source on GitHub ↗

Increment the value of the semaphore.

(self)

Source from the content-addressed store, hash-verified

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

Callers 9

__exit__Method · 0.95
releaseMethod · 0.95
recipe-577489.jsFile · 0.45
recipe-577634.jsFile · 0.45
recipe-577170.jsFile · 0.45
open_menuMethod · 0.45
mainFunction · 0.45
open_menuMethod · 0.45
open_menuMethod · 0.45

Calls 1

SemErrorClass · 0.85

Tested by

no test coverage detected