Close_semaphore

sql

PROCEDURE Close_semaphore(IN shandle HANDLE);

Parameters

shandle identifier (handle) of the opened semaphore

Since version:

6.1

Description

This procedure closes the handle for a semaphore and therefore disables the thread's work with that semaphore. If all threads close their handle to the semaphore, the semaphore will be closed.

This function's execution have no effect on operation of other threads, that are working with the same semaphore or waiting for the semaphore.

See more about thread synchronization here.

Viz