This commit is contained in:
Simon Cruanes 2022-08-27 20:48:32 -04:00
parent df287e4ef7
commit 2a0feed32c
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 35 additions and 36 deletions

View file

@ -1,4 +1,3 @@
(* registry keys *)
module type KEY = sig
type elt
@ -12,6 +11,8 @@
type t = { tbl: exn Util.Int_tbl.t } [@@unboxed]
let create () : t = { tbl = Util.Int_tbl.create 8 }
(* TODO: use atomic *)
let n_ = ref 0
let create_key (type a) () : a key =

View file

@ -1,5 +1,3 @@
(** Registry to extract values *)
type t