diff options
author | Dan Winship <danw@gnome.org> | 2011-10-03 14:58:06 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-11-08 12:49:32 -0500 |
commit | 05dff333a7f46eb6644d28a4e15398d347b9a523 (patch) | |
tree | a1970e2694bae81bbcdd3d8b94e9ff1b78334f84 /libsoup/soup-connection.h | |
parent | 43043425599e98cae85877aa53baf0115e342f5c (diff) | |
download | libsoup-05dff333a7f46eb6644d28a4e15398d347b9a523.tar.gz |
Add SoupSession:use-thread-context
Add a SoupSession flag telling it to use
g_main_context_get_thread_default() on a per-message basis, rather
than using a single GMainContext for everything. In the simple case,
this is just more glib-like API. In the more complicated case, it
allows synchronously sending one or more messages on a
SoupSessionAsync without running the main GMainLoop.
https://bugs.webkit.org/show_bug.cgi?id=68238
Diffstat (limited to 'libsoup/soup-connection.h')
-rw-r--r-- | libsoup/soup-connection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-connection.h b/libsoup/soup-connection.h index cd663a84..72e61062 100644 --- a/libsoup/soup-connection.h +++ b/libsoup/soup-connection.h @@ -47,6 +47,7 @@ typedef void (*SoupConnectionCallback) (SoupConnection *conn, #define SOUP_CONNECTION_SSL_STRICT "ssl-strict" #define SOUP_CONNECTION_SSL_FALLBACK "ssl-fallback" #define SOUP_CONNECTION_ASYNC_CONTEXT "async-context" +#define SOUP_CONNECTION_USE_THREAD_CONTEXT "use-thread-context" #define SOUP_CONNECTION_TIMEOUT "timeout" #define SOUP_CONNECTION_IDLE_TIMEOUT "idle-timeout" #define SOUP_CONNECTION_STATE "state" |