[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

SemaphoreWait

Wait for semaphore to become available

Declaration

Source position: threadh.inc line 180

procedure SemaphoreWait(

  const sem: Pointer

);

Description

SemaphoreWait waits (indefinitely) for the semaphore FSem to become available.

The use of semaphores requires thread support (use #rtl.cthreads unit on unices).

Errors

If no thread support is compiled in, then calling this function will result in a run-time error 232.

See also

#rtl.cthreads

  

Initialize the thread manager with a POSIX thread manager

SemaphoreInit

  

Create a new semaphore

SemaphorePost

  

Make semaphore available

SemaphoreDestroy

  

Destroy a semaphore


Documentation generated on: Nov 16 2015