[ Version ( since = "2.32" ) ]
public static MainContext ref_thread_default ()
Gets a reference to the thread-default [struct@GLib.
MainContext] for this thread
This is the same as [func@GLib.MainContext.get_thread_default], but it also adds a reference to the returned main context with [ method@GLib.MainContext.ref]. In addition, unlike [func@GLib.MainContext.get_thread_default], if the thread-default context is the global-default context, this will return that [struct@GLib.MainContext] (with a ref added to it) rather than returning `NULL`.
|
the thread-default main context |