MainContext.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.

class MainContext
bool
isOwner
()

Return Value

Type: bool

true if current thread is owner of context.