Skip to main content

testSemaphore

testSemaphore ( semaphore : string ) : boolean

ParameterTypeDescription
semaphorestring->Semaphore to test
Resultboolean<-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.

See also

clearSemaphore
semaphore
Signal class