ConcurrentUtils-0.4.5.0: Concurrent utilities

Safe HaskellTrustworthy
LanguageHaskell98

Control.CUtils.ThreadPool

Contents

Description

Implements rudimentary thread pools.

Synopsis

Thread pools

class ThreadPool pool where Source #

Thread pools support some standard operations...

Minimal complete definition

addToPool

Methods

addToPool :: pool -> IO () -> IO () Source #

class Interruptible pool where Source #

Minimal complete definition

stopPool

Methods

stopPool :: pool -> IO () Source #

data NoPool Source #

Constructors

NoPool 

Instances

ThreadPool NoPool Source # 

Methods

addToPool :: NoPool -> IO () -> IO () Source #

data BoxedThreadPool where Source #

Constructors

BoxedThreadPool :: ThreadPool pool => pool -> BoxedThreadPool