gio: Document that GSocket is not thread safe
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 16 Apr 2014 18:03:56 +0000 (19:03 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 16 Apr 2014 18:04:25 +0000 (19:04 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=726318

gio/gsocket.c

index 067431b78dc344b7162afe59103aba10ce867645..6713d0a0596c8b59e86d7e81ce0861deb12bd92d 100644 (file)
  * 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
  */