Skip to main content
Version: Next

testSemaphore

testSemaphore ( semaphore : string ) : boolean

ParameterTypeDescription
semaphorestringSemaphore to test
Resultbooleanfalse: 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.

See also

clearSemaphore
semaphore
Signal class