uni-reactor-2.2.1.0: Reactors for the uniform workbench

Reactor.Lock

Description

Lock is an instance of a typical thing we synchronize with. One instance is BSem.

Documentation

class Lock l whereSource

Methods

release :: l -> IO ()Source

release a lock

acquire :: l -> IO ()Source

acquire a lock

tryAcquire :: l -> IO BoolSource

acquire a lock and return True, if that can be done at once, otherwise return False.

Instances