[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Make semaphore available
Source position: threadh.inc line 181
procedure SemaphorePost( |
const sem: Pointer |
); |
SemaphorePost makes the semaphore FSem to available. Any threads that were waiting for the semaphore FSem to become available (using SemaphoreWait, will continue to execute.
The use of semaphores requires thread support (use #rtl.cthreads unit on unices).
If no thread support is compiled in, then calling this function will result in a run-time error 232.
|
Initialize the thread manager with a POSIX thread manager |
|
|
Create a new semaphore |
|
|
Wait for semaphore to become available |
|
|
Destroy a semaphore |