trylock

⚠️ Deprecated ⚠️

This is deprecated since version 2.32.

Use g_rec_mutex_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.

Return

true, if @mutex could be locked.