Gets the thread-default GMainContext for this thread. Asynchronous
operations that want to be able to be run in contexts other than
the default one should call this method to get a GMainContext to
add their GSources 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 threads are not initialized.)
Since 2.22
Gets the thread-default GMainContext for this thread. Asynchronous operations that want to be able to be run in contexts other than the default one should call this method to get a GMainContext to add their GSources 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 threads are not initialized.) Since 2.22