package goblint

  1. Overview
  2. Docs
Static analysis framework for C

Install

dune-project
 Dependency

Authors

Maintainers

Sources

goblint-2.6.0.tbz
sha256=20d5b7332a9f6072ab9ba86c4a53b898eaf681286c56a8805c41850bbf3ddf41
sha512=7c7685cfcd9aa866bc40e813df2bfcb3c79b3d40e615d8d6d0939c5798b9d70dd7f2ba87a741f5ba0ce891e9d254627207fb28057f1f2f6611e4e0d128fd6a71

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.