Gets the thread-default glib.MainContext for this thread. Asynchronous
operations that want to be able to be run in contexts other than
the default one should call this method or
MainContext.refThreadDefault to get a glib.MainContext to add
their glib.Sources to. (Note that even in single-threaded
programs applications may sometimes want to temporarily push a
non-default context, so it is not safe to assume that this will
always return NULL if you are running in the default thread.)
Gets the thread-default glib.MainContext for this thread. Asynchronous operations that want to be able to be run in contexts other than the default one should call this method or MainContext.refThreadDefault to get a glib.MainContext to add their glib.Sources to. (Note that even in single-threaded programs applications may sometimes want to temporarily push a non-default context, so it is not safe to assume that this will always return NULL if you are running in the default thread.)
If you need to hold a reference on the context, use MainContext.refThreadDefault instead.