package moonpool

  1. Overview
  2. Docs
Pools of threads supported by a pool of domains

Install

dune-project
 Dependency

Authors

Maintainers

Sources

moonpool-0.6.tbz
sha256=3efd095c82a37bba8c7ab6a2532aee3c445ebe1ecaed84ef3ffb560bc65e7633
sha512=e4bcab82e6638299c2d0beb1dbf204f7b43379a5387418c6edff85b9bf90c13ad1bdd8eb44b69cd421268d1bc45bcf918bcf77e1c924348211ac27d6643aac78

doc/moonpool.private/Moonpool_private/Thread_local_storage_/index.html

Module Moonpool_private.Thread_local_storage_Source

Thread local storage

Sourcetype 'a key

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

Sourceval new_key : (unit -> 'a) -> 'a key

Allocate a new, generative key. When the key is used for the first time on a thread, the function is called to produce it.

This should only ever be called at toplevel to produce constants, do not use it in a loop.

Sourceval get : 'a key -> 'a

Get the value for the current thread.

Sourceval set : 'a key -> 'a -> unit

Set the value for the current thread.

OCaml

Innovation. Community. Security.