Queue/Definition: Difference between revisions

m
(→‎{{header|Oz}}: thread safety)
m (→‎{{header|Clojure}}: thread safety)
Line 574:
(defn queue-empty? [q]
(empty? @q))</lang>
 
The implementation is thread-safe if there is at most one reader thread, i.e. only one threads ever calls <code>dequeue</code>.
 
=={{header|Common Lisp}}==
Anonymous user