package catapult

  1. Overview
  2. Docs
Tracing system based on the Catapult/TEF format

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.tar.gz
md5=a7bfa27c3ddd2d29c27173de09293149
sha512=49766ea38c57734918debd6218d95c62f11eb12a6fd3ef5f6a2c60344cea7c274436a46fab1e48abbe0d3f125f31705d2005ab7cae9e56d5f41778c1d2943d65

doc/catapult.utils/Catapult_utils/Thread_local/index.html

Module Catapult_utils.Thread_localSource

Basic thread-local storage.

Values are indexed by the thread ID, obtained (for example) via Thread.id (Thread.self()).

This module assumes that get_or_create m ~t_id is only ever called from the thread whose ID is t_id.

The close function may be called from another thread.

Sourcetype 'a t
Sourceval create : init:(t_id:int -> 'a) -> close:('a -> unit) -> unit -> 'a t
Sourceval size : _ t -> int
Sourceval get_or_create : 'a t -> 'a
Sourceval remove : _ t -> t_id:int -> unit
Sourceval iter : f:('a -> unit) -> 'a t -> unit
Sourceval clear : _ t -> unit
OCaml

Innovation. Community. Security.