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

Meta

Since

2.32