Intended to be imported qualified, as in
import qualified Control.Concurrent.ThreadManager as TM
- data ThreadManager
- data ThreadStatus
- make :: IO ThreadManager
- fork :: ThreadManager -> IO () -> IO ThreadId
- forkn :: ThreadManager -> Int -> IO () -> IO [ThreadId]
- getStatus :: ThreadManager -> ThreadId -> IO (Maybe ThreadStatus)
- waitFor :: ThreadManager -> ThreadId -> IO (Maybe ThreadStatus)
- waitForAll :: ThreadManager -> IO ()
Make the given number of managed threads.
Get the status of a managed thread.
Block until a specific managed thread terminates.