package goblint

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.

OCaml

Innovation. Community. Security.