TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 2.32
Gets a reference to the thread-default GLib.MainContext for this thread
This is the same as GLib.MainContext.get_thread_default, but it also adds a reference to the returned main context with GLib.MainContext.ref. In addition, unlike GLib.MainContext.get_thread_default, if the thread-default context is the global-default context, this will return that GLib.MainContext (with a ref added to it) rather than returning NULL.
NULL
the thread-default main context
2.32
Gets a reference to the thread-default GLib.MainContext for this thread
This is the same as GLib.MainContext.get_thread_default, but it also adds a reference to the returned main context with GLib.MainContext.ref. In addition, unlike GLib.MainContext.get_thread_default, if the thread-default context is the global-default context, this will return that GLib.MainContext (with a ref added to it) rather than returning
NULL.