Semaphore¶
- class dsviper.Semaphore¶
Bases:
objectA class used to represent a semaphore. Use the static factory method create(…) or open(…).
Note: Not directly instantiable.
- static exists(name: str) bool¶
Return True is the name exist.
- name() str¶
Return the name.
- post() bool¶
The semaphore is unlocked.
- try_wait() bool¶
The semaphore is locked.
- static unlink(name: str) bool¶
Unlink the shared memory object.
- wait() bool¶
The semaphore is locked.