ContentsIndex
Org.Org.Semantic.HBase.Category.MonadThread
Description
very much the Java model of threads.
Synopsis
class Monad m => MonadThread m where
fork :: m () -> m ()
yield :: m ()
sleep :: Integer -> m ()
class MonadThread m => ThreadLock m lock where
newLock :: m lock
synchronized :: lock -> m a -> m a
wait :: lock -> m ()
notify :: lock -> m ()
notifyAll :: lock -> m ()
class MonadThread m => ThreadControl m thread where
forkThread :: m () -> m thread
thisThread :: m thread
wakeThread :: thread -> m ()
joinThread :: thread -> m ()
Documentation
class Monad m => MonadThread m where
general fork and yield
Methods
fork :: m () -> m ()
yield :: m ()
sleep :: Integer -> m ()
Instances
class MonadThread m => ThreadLock m lock where
locks
Methods
newLock :: m lock
synchronized :: lock -> m a -> m a
wait :: lock -> m ()
notify :: lock -> m ()
notifyAll :: lock -> m ()
Instances
class MonadThread m => ThreadControl m thread where
thread type
Methods
forkThread :: m () -> m thread
thisThread :: m thread
wakeThread :: thread -> m ()
joinThread :: thread -> m ()
Instances
Produced by Haddock version 0.6