| Safe Haskell | Safe-Inferred |
|---|
Control.Concurrent.Extra
- module Control.Concurrent
- withNumCapabilities :: Int -> IO a -> IO a
- setNumCapabilities :: Int -> IO ()
Documentation
module Control.Concurrent
withNumCapabilities :: Int -> IO a -> IO aSource
On GHC 7.6 and above with the -threaded flag, brackets a call to setNumCapabilities.
On lower versions (which lack setNumCapabilities) this function just runs the argument action.
setNumCapabilities :: Int -> IO ()Source
A version of setNumCapabilities that works on all versions of GHC, but has no effect before GHC 7.6.