mac-0.1.3.0: Static Mandatory Access Control in Haskell

Safe HaskellTrustworthy
LanguageHaskell98

MAC.MVar

Description

Synchronization primitives

Synopsis

Documentation

type MACMVar l a = Res l (MVar a) Source #

Labeled MVars

newMACMVar :: Less l l' => a -> MAC l (MACMVar l' a) Source #

Creation of a labeled MVar

newMACEmptyMVar :: Less l l' => MAC l (MACMVar l' a) Source #

Creation of an empty labeled MVar

takeMACMVar :: Less l l => MACMVar l a -> MAC l a Source #

Securely taking a labeled MVar

putMACMVar :: Less l l => MACMVar l a -> a -> MAC l () Source #

Securely writing into a labeled MVar