Module Luv__.TLS

type t

Binds uv_key_t.

val create : unit -> (tLuv.Error.t) Result.result

Creates a TLS key.

Binds uv_key_create. See pthread_key_create(3p).

val delete : t -> unit

Deletes a TLS key.

Binds uv_key_delete. See pthread_key_delete(3p).

val get : t -> nativeint

Retrieves the value at a TLS key.

Binds uv_key_get. See pthread_getspecific(3p).

val set : t -> nativeint -> unit

Sets the value at a TLS key.

Binds uv_key_set. See pthread_setspecific(3p).