package picos

  1. Overview
  2. Docs
Pico scheduler framework

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.3.0.tbz
sha256=544804c0bde4b29764f82f04e7defed7c06bc43e5a6ce3f7fdc326cb54a7f066
sha512=4c93427e477fb52374a554a8b9c4c92836a9b5899161275d1473269ab526a1f59177209140631ed763a55be375855dea12f076e18bf4124522414986c0e257be

doc/picos.thread/Picos_thread/TLS/index.html

Module Picos_thread.TLSSource

Thread-local storage.

Note that here "thread" refers to system level threads rather than fibers or domains. In case a system level thread implementation, i.e. the threads.posix library, is not available, this will use Picos_domain.DLS.

Sourcetype 'a key

Represents a key for storing values of type 'a in storage associated with threads.

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

new_key compute allocates a new key for associating values in storage associated with threads. The initial value for each thread is computed by calling the given function if the key is read before it has been written.

Sourceval get : 'a key -> 'a

get key returns the value associated with the key in the storage associated with the current thread.

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

set key value sets the value associated with the key in the storage associated with the current thread.

OCaml

Innovation. Community. Security.