TrySemaphore()
语法
Result = TrySemaphore(Semaphore)概要
Decreases the internal count of the semaphore by one only if the count is above 0. This is the same as a WaitSemaphore() operation, but without blocking if the count would fall below 0.
参数
Semaphore The semaphore to use.
返回值
Nonzero if the semaphore count was decreased, or zero if the count could not be decreased because it was already zero.
已支持操作系统
所有