RecMutex.trylock

Tries to lock rec_mutex. If rec_mutex is already locked by another thread, it immediately returns false. Otherwise it locks rec_mutex and returns true.

class RecMutex
bool
trylock
()

Return Value

Type: bool

true if rec_mutex could be locked