Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pthread_key_create :: Ptr Key -> Ptr () -> IO Intthread-local-storage Data.TLS.PThread.Internal No documentation available.
pthread_key_delete :: Key -> IO Intthread-local-storage Data.TLS.PThread.Internal No documentation available.
pthread_setspecific :: Key -> StablePtr a -> IO Intthread-local-storage Data.TLS.PThread.Internal No documentation available.
-
A simplified implementation of Erlang/OTP like supervisor over thread Please see the README on Github at https://github.com/nshimaza/thread-supervisor#readme
type
ThreadMap = IORef Map ThreadId ChildSpecthread-supervisor Control.Concurrent.SupervisorInternal ThreadMap is mutable variable which holds pool of living threads and ChildSpec of each thread. ThreadMap is used inside of supervisor only.
killAllSupervisedThread :: SupervisorInbox -> ThreadMap -> IO ()thread-supervisor Control.Concurrent.SupervisorInternal Kill all running threads supervised by the supervisor represented by SupervisorQueue.
newSupervisedThread :: SupervisorQueue -> ThreadMap -> ChildSpec -> IO ThreadIdthread-supervisor Control.Concurrent.SupervisorInternal Start a new thread with supervision.
newThread :: ThreadMap -> ChildSpec -> IO ThreadIdthread-supervisor Control.Concurrent.SupervisorInternal Start new thread based on given ChildSpec, register the thread to given ThreadMap then returns ThreadId of the thread.
-
thread-supervisor Control.Concurrent.SupervisorInternal Create an empty ThreadMap
startAllSupervisedThread :: SupervisorQueue -> ThreadMap -> [ChildSpec] -> IO ()thread-supervisor Control.Concurrent.SupervisorInternal Start all given ChildSpec on new thread each with supervision.