yarr-1.3.3.3: Yet another array library

Safe HaskellNone
LanguageHaskell98

Data.Yarr.Utils.Parallel

Synopsis

Documentation

parallel Source

Arguments

:: Int

Number of threads to parallelize work on

-> (Int -> IO a)

Per-thread work producer, passed thread number [0..threads-1]

-> IO [a]

Results

parallel_ Source

Arguments

:: Int

Number of threads to parallelize work on

-> (Int -> IO a)

Per-thread work producer, passed thread number [0..threads-1]

-> IO () 

Version of parallel which discards results.