add threadCapability :: ThreadId -> IO (Int,Bool)
authorSimon Marlow <marlowsd@gmail.com>
Tue, 1 Mar 2011 10:32:46 +0000 (10:32 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 1 Mar 2011 10:32:46 +0000 (10:32 +0000)
commit6685444335fe57d5d86b61965989e45f34fddf0e
treef69242d42adbeccfdfaa7fc7136602360192e459
parentec3b159bea4d0574ed51a7f1035dc83bf99574f2
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@.
GHC/Conc.lhs
GHC/Conc/Sync.lhs