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.

Return: %TRUE if @rec_mutex could be locked

class RecMutex
bool
trylock
()

Meta

Since

2.32