This commit is contained in:
Simon Cruanes 2023-09-14 22:48:13 -04:00
parent 8349f315b5
commit 9f976f4092
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -23,7 +23,7 @@ val try_pop : force_lock:bool -> 'a t -> 'a option
or returns [None] without blocking. or returns [None] without blocking.
@param force_lock if true, use {!Mutex.lock} (which can block under contention); @param force_lock if true, use {!Mutex.lock} (which can block under contention);
if false, use {!Mutex.try_lock}, which might return [None] even in if false, use {!Mutex.try_lock}, which might return [None] even in
presence of an element if there's contention *) presence of an element if there's contention *)
val try_push : 'a t -> 'a -> bool val try_push : 'a t -> 'a -> bool
(** [try_push q x] tries to push into [q], in which case (** [try_push q x] tries to push into [q], in which case