is_owner


Description:

[ Version ( since = "2.10" ) ]
public bool is_owner ()

Determines whether this thread holds the (recursive) ownership of this [struct@GLib.

MainContext].

This is useful to know before waiting on another thread that may be blocking to get ownership of this.

Parameters:

this

a main context (if `NULL`, the global-default main context will be used)

Returns:

true if current thread is owner of this, false otherwise