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

SemaphorePost

Make semaphore available

Declaration

Source position: threadh.inc line 181

procedure SemaphorePost(

  const sem: Pointer

);

Description

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).

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

SemaphoreWait

  

Wait for semaphore to become available

SemaphoreDestroy

  

Destroy a semaphore


Documentation generated on: Nov 16 2015