albatross/src/vmm_ring.mli

11 lines
302 B
OCaml
Raw Normal View History

2018-10-23 23:10:35 +00:00
(* (c) 2018 Hannes Mehnert, all rights reserved *)
type 'a t
2018-10-23 23:10:35 +00:00
val create : ?size:int -> 'a -> unit -> 'a t
2018-10-23 23:10:35 +00:00
val write : 'a t -> Ptime.t * 'a -> unit
val read_last : 'a t -> ?tst:('a -> bool) -> int -> (Ptime.t * 'a) list
val read_history : 'a t -> ?tst:('a -> bool) -> Ptime.t -> (Ptime.t * 'a) list