Add g_main_context_push_thread_default() etc

This allows applications to use async methods from other threads, or
in multiple independent main loops.

http://bugzilla.gnome.org/show_bug.cgi?id=579984
This commit is contained in:
Dan Winship
2009-06-04 21:59:15 -04:00
parent 90381ecdbd
commit 4363f1932f
5 changed files with 177 additions and 4 deletions

View File

@@ -462,6 +462,11 @@ g_main_depth
g_main_current_source
g_main_set_poll_func
<SUBSECTION>
g_main_context_get_thread_default
g_main_context_push_thread_default
g_main_context_pop_thread_default
<SUBSECTION>
g_timeout_source_new
g_timeout_source_new_seconds

View File

@@ -545,6 +545,30 @@ for the default main context.
@Deprecated: 2.2: Use g_main_context_set_poll_func() instead.
<!-- ##### FUNCTION g_main_context_get_thread_default ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION g_main_context_push_thread_default ##### -->
<para>
</para>
@context:
<!-- ##### FUNCTION g_main_context_pop_thread_default ##### -->
<para>
</para>
@context:
<!-- ##### FUNCTION g_timeout_source_new ##### -->
<para>