summaryrefslogtreecommitdiff
path: root/stdlib/queue.mli
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/queue.mli')
-rw-r--r--stdlib/queue.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/queue.mli b/stdlib/queue.mli
index 354271237d..55e8988329 100644
--- a/stdlib/queue.mli
+++ b/stdlib/queue.mli
@@ -14,6 +14,10 @@
(** First-in first-out queues.
This module implements queues (FIFOs), with in-place modification.
+
+ {b Warning} This module is not thread-safe: each {!Queue.t} value
+ must be protected from concurrent access (e.g. with a {!Mutex.t}).
+ Failure to do so can lead to a crash.
*)
type 'a t