wait
Description:
Tries to become the owner of the specified context, and waits on cond if another thread is the owner.
Note:
Use [method@GLib.MainContext.is_owner] and separate locking instead.
This is the same as [method@GLib.MainContext.acquire], but if another thread is the owner, atomically drop mutex and wait on
cond until that owner releases ownership or until cond is signaled, then try again (once) to become the owner.
Parameters:
| this |
a main context (if `NULL`, the global-default main context will be used) |
| cond |
a condition variable |
| mutex |
a mutex, currently held |
Returns:
|
true if this thread is now the owner of this, false otherwise |