[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Wait for semaphore to become available
Source position: threadh.inc line 180
procedure SemaphoreWait( |
const sem: Pointer |
); |
SemaphoreWait waits (indefinitely) for the semaphore FSem to become available.
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 |
|
|
Make semaphore available |
|
|
Destroy a semaphore |