package picos

  1. Overview
  2. Docs
Pico scheduler interface

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.6.0.tbz
sha256=3f5a08199cf65c2dae2f7d68f3877178f1da8eabf5376e15114e5a8958087dfa
sha512=ad24910c47ce614268c4268874bb918da7f8b5f03b3ad706bbf30323635262e94ddab6be24eaebbca706bfa82c0a517d4272b396459e020c185942125c9bdb7b

doc/picos.domain/Picos_domain/DLS/index.html

Module Picos_domain.DLSSource

Domain-local storage for Picos.

ℹ️ On OCaml 4 there is always only a single domain.

Sourcetype 'a key

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

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

new_key compute allocates a new key for associating values in storage associated with domains. The initial value for each domain is computed by calling the given function if the key is read before it has been written. The compute function might be called multiple times per domain, but only one result will be used.

Sourceval get : 'a key -> 'a

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

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

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

OCaml

Innovation. Community. Security.