diff options
author | Dan Winship <danw@src.gnome.org> | 2008-02-10 02:36:40 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-02-10 02:36:40 +0000 |
commit | 8af9a99fad5ffede3456ee9af3b96362821b7488 (patch) | |
tree | 57a2e2cf61fdc2cd235f9b3ece2acd668502e80b /libsoup/soup-session-sync.c | |
parent | 973896b37277298bdd441675b827108e594db52f (diff) | |
download | libsoup-8af9a99fad5ffede3456ee9af3b96362821b7488.tar.gz |
Misc gtk-doc fix-ups
* Misc gtk-doc fix-ups
svn path=/trunk/; revision=1083
Diffstat (limited to 'libsoup/soup-session-sync.c')
-rw-r--r-- | libsoup/soup-session-sync.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libsoup/soup-session-sync.c b/libsoup/soup-session-sync.c index 2db8435f..9fd8b3ca 100644 --- a/libsoup/soup-session-sync.c +++ b/libsoup/soup-session-sync.c @@ -16,10 +16,27 @@ /** * SECTION:soup-session-sync - * @short_description: Soup session for blocking I/O in multithreaded programs. + * @short_description: Soup session for blocking I/O in multithreaded + * programs. * * #SoupSessionSync is an implementation of #SoupSession that uses * synchronous I/O, intended for use in multi-threaded programs. + * + * You can use #SoupSessionSync from multiple threads concurrently. + * Eg, you can send a #SoupMessage in one thread, and then while + * waiting for the response, send another #SoupMessage from another + * thread. You can also send a message from one thread and then call + * soup_session_cancel_message() on it from any other thread (although + * you need to be careful to avoid race conditions, where the message + * finishes and is then unreffed by the sending thread just before you + * cancel it). + * + * However, the majority of other types and methods in libsoup are not + * MT-safe. In particular, you <emphasis>cannot</emphasis> modify or + * examine a #SoupMessage while it is being transmitted by + * #SoupSessionSync in another thread. Once a message has been handed + * off to #SoupSessionSync, it can only be manipulated from its signal + * handler callbacks, until I/O is complete. **/ typedef struct { |