package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rocq-9.1.0.tar.gz
sha256=b236dc44f92e1eeca6877c7ee188a90c2303497fe7beb99df711ed5a7ce0d824

doc/rocq-runtime.clib/Memprof_coq/Thread_map/index.html

Module Memprof_coq.Thread_mapSource

An async-safe, scoped thread-local store

Sourcetype 'a t
Sourceval create : unit -> 'a t

Create an empty map

Sourceval with_value : 'a t -> value:'a -> scope:(unit -> 'b) -> 'b

Associate ~value to the current thread for the duration of a scope. It can be nested: the previous association is restored on exit.

Sourceval get : 'a t -> 'a option

Get the value currently associated with the current thread.