Sign in Join
FPDoc Onlineexperiment

TSemaphoreWaitHandler procedure type

In unit System

Function prototype to wait on a semaphore.

Declaration

pascal
TSemaphoreWaitHandler = procedure(const sem: Pointer)

Description

TSemaphoreWaitHandler is the function prototype to wait on an event on the semaphore (which should be posted to the semaphore with ThreadManager.SemaphorePost). It should handle a pointer as returned by the ThreadManager.SemaphoreInit procedure. it's used by the thread manager ThreadManager.SemaphoreWait.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.