diff --git a/moonpool/Moonpool_private/Thread_local_storage_/index.html b/moonpool/Moonpool_private/Thread_local_storage_/index.html index afdbf2e0..6c98a3fe 100644 --- a/moonpool/Moonpool_private/Thread_local_storage_/index.html +++ b/moonpool/Moonpool_private/Thread_local_storage_/index.html @@ -1,2 +1,2 @@ -Thread_local_storage_ (moonpool.Moonpool_private.Thread_local_storage_)

Module Moonpool_private.Thread_local_storage_

Thread local storage

type 'a t

A TLS slot for values of type 'a. This allows the storage of a single value of type 'a per thread.

val create : unit -> 'a t
val get : 'a t -> 'a
  • raises Failure

    if not present

val get_opt : 'a t -> 'a option
val set : 'a t -> 'a -> unit
+Thread_local_storage_ (moonpool.Moonpool_private.Thread_local_storage_)

Module Moonpool_private.Thread_local_storage_

Thread local storage

type 'a t

A TLS slot for values of type 'a. This allows the storage of a single value of type 'a per thread.

exception Not_set
val create : unit -> 'a t
val get_exn : 'a t -> 'a
val get_opt : 'a t -> 'a option
val set : 'a t -> 'a -> unit