[glib] gio: Document that GSocket is not thread safe
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: Document that GSocket is not thread safe
- Date: Thu, 17 Apr 2014 06:53:03 +0000 (UTC)
commit 2b247e158991c9698c7cb53731395de2b69cb086
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Apr 16 19:03:56 2014 +0100
gio: Document that GSocket is not thread safe
https://bugzilla.gnome.org/show_bug.cgi?id=726318
gio/gsocket.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 067431b..6713d0a 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
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]