mainContextRefThreadDefault
Gets the thread-default struct@GLib.MainContext for this thread, as with func@GLib.MainContext.get_thread_default, but also adds a reference to it 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.
Return
the thread-default #GMainContext. Unref with method@GLib.MainContext.unref when you are done with it.
Since
2.32