hiernotify-2011.3.17: Notification library for a filesystem hierarchy.

Control.Concurrent.STM.TMonoid

Synopsis

Documentation

data TMonoid m Source

a concurrent STM Monoid

writeTMonoid :: TMonoid m -> m -> STM ()Source

mappend the value

readTMonoid :: TMonoid m -> STM mSource

peek the monoid and reset it

newDelayedTMonoidSource

Arguments

:: (Monoid m, Eq m) 
=> Int

number of empty mappends before allowing the read

-> STM (TMonoid m)

a delayed TMonoid

create a TMonoid for a comparable Monoid. The created TMonoid waits for an empty update to release a read