wait
⚠️ Deprecated ⚠️
This is deprecated since version 2.58.
Use method@GLib.MainContext.is_owner and separate locking instead.
Tries to become the owner of the specified context, as with 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.
Return
true if the operation succeeded, and this thread is now the owner of @context.
Parameters
cond
a condition variable
mutex
a mutex, currently held