Plexus.Schedule.Quiescence (Plexus v0.1.0)

Copy Markdown View Source

Lock-free counters used by stop conditions and barrier experiments.

Summary

Types

t()

@type t() :: :counters.counters_ref()

Functions

add(ref, counter, delta)

@spec add(t(), atom(), integer()) :: :ok

get(ref, counter)

@spec get(t(), atom()) :: integer()

new()

@spec new() :: t()

quiescent?(ref)

@spec quiescent?(t()) :: boolean()

snapshot(ref)

@spec snapshot(t()) :: map()