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

SemaphoreDestroy

Destroy a semaphore

Declaration

Source position: threadh.inc line 179

procedure SemaphoreDestroy(

  const sem: Pointer

);

Description

SemaphoreDestroy destroys a semaphore, created with SemaphoreInit.

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

SemaphoreWait

  

Wait for semaphore to become available

SemaphorePost

  

Make semaphore available

SemaphoreInit

  

Create a new semaphore


Documentation generated on: Mar 17 2017