package goblint

  1. Overview
  2. Docs
Static analysis framework for C

Install

dune-project
 Dependency

Authors

Maintainers

Sources

goblint-2.7.1.tbz
sha256=af01aac256229f33a90a9fcbfed04b01e3097f154d4d124f006476d6387c6a66
sha512=2a93bfe16881adbc2d8dcbfe38c1e19cd24ca105d8e1eda13d02440f3002874ffe2957dfd937510765233a054a40568b0052db92e31d382a5bd215d1ec12565c

doc/goblint.parallel/Goblint_parallel/Data/ConcurrentHashmap/index.html

Module Data.ConcurrentHashmapSource

A lock free concurrency safe hashmap

Parameters

module D : DefaultType
module HM : Batteries.Hashtbl.S with type key = H.t

Signature

Sourcetype key = H.t
Sourcetype value = D.t Atomic.t
Sourcetype t
Sourceval create : unit -> t
Sourceval to_list : t -> (key * value) list
Sourceval to_seq : t -> (key * value) Batteries.Seq.t
Sourceval to_seq_values : t -> value Batteries.Seq.t
Sourceval to_hashtbl : t -> D.t HM.t
Sourceval find_option : t -> key -> value option
Sourceval find : t -> key -> value

find t k returns the value associated with k in t. If k is not present, it raises Not_found. Use this method if you expect the value to be present in the hashmap

Sourceval mem : t -> key -> bool
Sourceval find_create : t -> key -> value * bool

find_create t k returns the value associated with k in t. If k is not present, it creates a new value using the default factory and adds it to t. It returns the new value and a boolean indicating whether it was created.