package picos

  1. Overview
  2. Docs
Pico scheduler interface

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.4.0.tbz
sha256=343a8b4759239ca0c107145b8e2cc94c14625fecc0b0887d3c40a9ab7537b8da
sha512=db22b0a5b3adc603c0e815c9011c779f892b9ace76be018b2198d3e24a7d96727c999701025fe5a5fd07d0b452cb7286fc50c939aba0e4dce809941e9ebc12a6

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.