Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The #GThreadPool struct represents a thread pool. It has three public read-only members, but the underlying struct is bigger, so you must not copy this struct.
- newtype ThreadPool = ThreadPool (ForeignPtr ThreadPool)
- noThreadPool :: Maybe ThreadPool
- threadPoolFree :: MonadIO m => ThreadPool -> Bool -> Bool -> m ()
- threadPoolGetMaxThreads :: MonadIO m => ThreadPool -> m Int32
- threadPoolGetNumThreads :: MonadIO m => ThreadPool -> m Word32
- threadPoolMoveToFront :: MonadIO m => ThreadPool -> Ptr () -> m Bool
- threadPoolPush :: MonadIO m => ThreadPool -> Ptr () -> m ()
- threadPoolSetMaxThreads :: MonadIO m => ThreadPool -> Int32 -> m ()
- threadPoolUnprocessed :: MonadIO m => ThreadPool -> m Word32
- threadPoolReadExclusive :: ThreadPool -> IO Bool
- threadPoolReadUserData :: ThreadPool -> IO (Ptr ())
Exported types
newtype ThreadPool Source
Methods
threadPoolFree
threadPoolFree :: MonadIO m => ThreadPool -> Bool -> Bool -> m () Source
threadPoolGetMaxThreads
threadPoolGetMaxThreads :: MonadIO m => ThreadPool -> m Int32 Source
threadPoolGetNumThreads
threadPoolGetNumThreads :: MonadIO m => ThreadPool -> m Word32 Source
threadPoolMoveToFront
threadPoolMoveToFront :: MonadIO m => ThreadPool -> Ptr () -> m Bool Source
threadPoolPush
threadPoolPush :: MonadIO m => ThreadPool -> Ptr () -> m () Source
threadPoolSetMaxThreads
threadPoolSetMaxThreads :: MonadIO m => ThreadPool -> Int32 -> m () Source
threadPoolUnprocessed
threadPoolUnprocessed :: MonadIO m => ThreadPool -> m Word32 Source
Properties
Exclusive
UserData
threadPoolReadUserData :: ThreadPool -> IO (Ptr ()) Source