aboutsummaryrefslogtreecommitdiffstats
path: root/thread_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index 9ac28a9aa0..9de9c32965 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -632,7 +632,13 @@ queue_do_close(VALUE self, int is_szq)
/*
* Document-class: Queue
*
- * This class provides a way to synchronize communication between threads.
+ * The Queue class implements multi-producer, multi-consumer queues.
+ * It is especially useful in threaded programming when information
+ * must be exchanged safely between multiple threads. The Queue class
+ * implements all the required locking semantics.
+ *
+ * The class implements FIFO type of queue. In a FIFO queue, the first
+ * tasks added are the first retrieved.
*
* Example:
*