Initial settings
Modulepoolboy-0.5.0.1Haskell2010
Data.Poolboy
- 6 types
- 18 values
- Packagepoolboy-0.5.0.1
- Exports24
- LanguageHaskell2010
- LicenceISC
- SourcePoolboy.hs
Configuration
8 declarationsInitial number of threads
Constructors
CapabilitiesWCSgetNumCapabilities based number
FixedWCS Int
Instances2Eq, Show
Eq WorkersCountSettingsDefined in poolboy-0.5.0.1 · Data.PoolboyShow WorkersCountSettingsDefined in poolboy-0.5.0.1 · Data.Poolboy
Commands performed on the queue
Constructors
CreatePool ThreadIdChangeDesiredWorkersCount ThreadId IntSetMaxWorkersCount ThreadId IntAddAvailableWorkers ThreadId IntWaitAvailableWorkers ThreadId IntSetStoppedWorkQueue ThreadIdWaitingStopFinishWorkers ThreadIdWaitingWorkersCompletion ThreadId [ThreadId]ResetMaxWorkers ThreadIdEmptyAvailableWorkers ThreadId IntWaitReady ThreadIdEnqueueAfter ThreadIdEnqueue ThreadIdEnsureRunning ThreadId BoolSpawnTask ThreadIdWaitAvailableWorker ThreadIdStartTask ThreadIdCompleteTask ThreadIdEnqueueRegisterTask ThreadId ThreadId
Instances2Eq, Show
Eq PoolboyCommandDefined in poolboy-0.5.0.1 · Data.PoolboyShow PoolboyCommandDefined in poolboy-0.5.0.1 · Data.Poolboy
Usual configuration CapabilitiesWCS and no name
Arbitrary-numbered of workers settings
Name of the work queue settings (used in error and debugging)
Name of the work queue settings (used in error and debugging)
Change PoolboySettings monad
Running
4 declarationsbacket-based usage (recommended)
Standalone/manual usage
Change WorkQueue monad
Driving
2 declarationsRequest a worker number adjustment
Warning: non-concurrent operation
Block until one worker is available
Stopping
5 declarationsRequest stopping wokers
Non-blocking check of the work queue's running status
Block until the queue is totally stopped or deadline (in micro seconds) is reached
Block until the queue is totally stopped (no more running worker)
Enqueueing
5 declarationsEnqueue one action in the work queue (non-blocking)
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue one action in the work queue (non-blocking)
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue action and some actions to be run after it
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue action and some actions to be run after it
Throws WorkQueueStoppedException if the work queue is stopped
Instances3Eq, Show, Exception
Eq WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.PoolboyShow WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.PoolboyException WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.Poolboy