MainContext.isOwner
bool isOwner()Determines whether this thread holds the (recursive) ownership of this #GMainContext. This is useful to know before waiting on another thread that may be blocking to get ownership of context.
Returns
true if current thread is owner of context.