clearSemaphore
clearSemaphore( semaphore : string )
| Parameter | Type | Description | |
|---|---|---|---|
| semaphore | string | → | Semaphore to clear |
Description
The clearSemaphore command erases semaphore previously set by the semaphore command.
As a rule, all semaphores that have been created should be cleared. If semaphores are not cleared, they remain in memory until the process that creates them ends. A process can only clear semaphores that it has created. If you try to clear a semaphore from within a process that did not create it, nothing happens.