Release_semaphore

sql

PROCEDURE Release_semaphore(IN shandle HANDLE);

Parameters

shandle identifier (handle) of the opened semaphore

Since version:

6.1

Description

The procedure release the semaphor for another thread.

If some other threads are waiting for releasing this semaphore (in Wait_for_semaphore function) then one of them is freed and can continue its work. If no thead is waiting then the count of threads that can go through the semaphore without waiting, is increased by 1.

See more about thread synchronization.

See