MainContext.wait

Tries to become the owner of the specified context, as with glib.main_context.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.

More...
class MainContext
bool
wait

Parameters

cond glib.cond.Cond

a condition variable

mutex glib.mutex.Mutex

a mutex, currently held

Return Value

Type: bool

true if the operation succeeded, and this thread is now the owner of context.

Detailed Description

Deprecated: Use glib.main_context.MainContext.isOwner and separate locking instead.