StaticRecMutex.trylock

Tries to lock mutex. If mutex is already locked by another thread, it immediately returns FALSE. Otherwise it locks mutex and returns TRUE. If mutex is already locked by the calling thread, this functions increases the depth of mutex and immediately returns TRUE.

class StaticRecMutex
int
trylock
()

Return Value

Type: int

TRUE, if mutex could be locked.

Meta