Skip to content
  • Simon Marlow's avatar
    add threadCapability :: ThreadId -> IO (Int,Bool) · 06c59e58
    Simon Marlow authored
    -- | 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@.
    06c59e58