[glib/glib-2-28] GThread: expand the docs



commit 6274eb1c982f7f48b6724e4304386e19bf3aadd7
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 27 20:22:20 2011 -0400

    GThread: expand the docs
    
    Mention newer addition to the thread support in the introduction:
    bit locks and one-time initialization.

 glib/gthread.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/glib/gthread.c b/glib/gthread.c
index 971aedb..572b87d 100644
--- a/glib/gthread.c
+++ b/glib/gthread.c
@@ -83,11 +83,14 @@
  * portable means for writing multi-threaded software. There are
  * primitives for mutexes to protect the access to portions of memory
  * (#GMutex, #GStaticMutex, #G_LOCK_DEFINE, #GStaticRecMutex and
- * #GStaticRWLock). There are primitives for condition variables to
+ * #GStaticRWLock). There is a facility to use individual bits for
+ * locks (g_bit_lock()). There are primitives for condition variables to
  * allow synchronization of threads (#GCond).  There are primitives for
  * thread-private data - data that every thread has a private instance
- * of (#GPrivate, #GStaticPrivate). Last but definitely not least there
- * are primitives to portably create and manage threads (#GThread).
+ * of (#GPrivate, #GStaticPrivate). There are facilities for one-time
+ * initialization (#GOnce, g_once_init_enter()). Last but definitely
+ * not least there are primitives to portably create and manage
+ * threads (#GThread).
  *
  * The threading system is initialized with g_thread_init(), which
  * takes an optional custom thread implementation or %NULL for the



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]