patch applied (packages/base): add threadCapability :: ThreadId -> IO (Int,Bool)
Simon Marlow
marlowsd at gmail.com
Tue Mar 1 13:11:25 CET 2011
Tue Mar 1 02:32:46 PST 2011 Simon Marlow <marlowsd at gmail.com>
* add threadCapability :: ThreadId -> IO (Int,Bool)
-- | returns the number of the capability on which the thread is currently
-- running, and a boolean indicating whether the thread is locked to
-- that capability or not. A thread is locked to a capability if it
-- was created with @forkOnIO at .
M ./GHC/Conc.lhs +1
M ./GHC/Conc/Sync.lhs -1 +11
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=packages/base;a=darcs_commitdiff;h=20110301103246-12142-7122c605805e996d4d74eb1430d2649997c9f226.gz
More information about the Cvs-libraries
mailing list