add setNumCapabilities :: Int -> IO ()
authorSimon Marlow <marlowsd@gmail.com>
Tue, 6 Dec 2011 15:09:20 +0000 (15:09 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 6 Dec 2011 15:19:34 +0000 (15:19 +0000)
commitf27a5d2ced7feffad94576ff5904c329f20ebfd9
tree5098600dc8209d920a5d1b77b6ca12b38eaa4e30
parentffc3054840e3183fb35cccb9ce359868dc509040
add setNumCapabilities :: Int -> IO ()

{- |
Set the number of Haskell threads that can run truly simultaneously
(on separate physical processors) at any given time.

GHC notes: in the current implementation, the value may only be
/increased/, not decreased, by calling 'setNumCapabilities'.  The
initial value is given by the @+RTS -N@ flag, and the current value
may be obtained using 'getNumCapabilities'.
-}
GHC/Conc.lhs
GHC/Conc/Sync.lhs