From 2b247e158991c9698c7cb53731395de2b69cb086 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 16 Apr 2014 19:03:56 +0100 Subject: [PATCH] gio: Document that GSocket is not thread safe https://bugzilla.gnome.org/show_bug.cgi?id=726318 --- gio/gsocket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gsocket.c b/gio/gsocket.c index 067431b78..6713d0a05 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -117,6 +117,10 @@ * account the fact that your program will not automatically be killed * if it tries to write to %stdout after it has been closed. * + * Like most other APIs in GLib, #GSocket is not inherently thread safe. To use + * a #GSocket concurrently from multiple threads, you must implement your own + * locking. + * * Since: 2.22 */