meta-par-0.3: Provides the monad-par interface, but based on modular scheduler "mix-ins".

Safe HaskellSafe-Infered

Control.Monad.Par.Meta.Resources.SingleThreaded

Contents

Description

A simple single-threaded Resource that is a useful accompaniment for testing non-CPU resources such as GPU or distributed.

Synopsis

Resource creation

mkResource :: ResourceSource

Create a single-threaded resource.

Implementation

defaultStartup :: StartupSource

Spawn a single Meta-Par worker.

defaultWorkSearch :: WorkSearchSource

A single-threaded resource by itself is not aware of any other sources of work, so its WorkSearch always returns Nothing.