testSemaphore
testSemaphore ( semaphore : string ) : boolean
| Parameter | Type | Description | |
|---|---|---|---|
| semaphore | string | → | Semaphore to test |
| Result | boolean | ← | false: semaphore does not exist, true: semaphore exists |
Description
The testSemaphore command tests for the existence of semaphore.
The difference between the semaphore and the testSemaphore functions is that testSemaphore does not create the semaphore if it does not exist. If the semaphore exists, the command returns true. Otherwise, it returns false.