Data_structures.RingBuffer
Lock-free ring buffer for high-frequency market data
type 'a t
exception Buffer_full
exception Buffer_empty
val create : capacity:int -> 'a -> 'a t
val size : 'a t -> int
val is_empty : 'a t -> bool
val is_full : 'a t -> bool
val push : 'a t -> 'a -> unit
val pop : 'a t -> 'a
val try_push : 'a t -> 'a -> bool
val try_pop : 'a t -> 'a option