Module Luv__.TLS
type t
Binds
uv_key_t
.
val create : unit -> (t, Luv.Error.t) Result.result
Creates a TLS key.
Binds
uv_key_create
. Seepthread_key_create(3p)
.
val delete : t -> unit
Deletes a TLS key.
Binds
uv_key_delete
. Seepthread_key_delete(3p)
.
val get : t -> nativeint
Retrieves the value at a TLS key.
Binds
uv_key_get
. Seepthread_getspecific(3p)
.
val set : t -> nativeint -> unit
Sets the value at a TLS key.
Binds
uv_key_set
. Seepthread_setspecific(3p)
.