Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getThreadPoolExclusive :: MonadIO m => ThreadPool -> m Boolgi-glib GI.GLib.Structs.ThreadPool Get the value of the “exclusive” field. When overloading is enabled, this is equivalent to
get threadPool #exclusive
getThreadPoolFunc :: MonadIO m => ThreadPool -> m (Maybe Func_WithClosures)gi-glib GI.GLib.Structs.ThreadPool Get the value of the “func” field. When overloading is enabled, this is equivalent to
get threadPool #func
getThreadPoolUserData :: MonadIO m => ThreadPool -> m (Ptr ())gi-glib GI.GLib.Structs.ThreadPool Get the value of the “user_data” field. When overloading is enabled, this is equivalent to
get threadPool #userData
newZeroThreadPool :: MonadIO m => m ThreadPoolgi-glib GI.GLib.Structs.ThreadPool Construct a ThreadPool struct initialized to zero.
setThreadPoolExclusive :: MonadIO m => ThreadPool -> Bool -> m ()gi-glib GI.GLib.Structs.ThreadPool Set the value of the “exclusive” field. When overloading is enabled, this is equivalent to
set threadPool [ #exclusive := value ]
setThreadPoolFunc :: MonadIO m => ThreadPool -> FunPtr C_Func -> m ()gi-glib GI.GLib.Structs.ThreadPool Set the value of the “func” field. When overloading is enabled, this is equivalent to
set threadPool [ #func := value ]
setThreadPoolUserData :: MonadIO m => ThreadPool -> Ptr () -> m ()gi-glib GI.GLib.Structs.ThreadPool Set the value of the “user_data” field. When overloading is enabled, this is equivalent to
set threadPool [ #userData := value ]
threadPoolFree :: (HasCallStack, MonadIO m) => ThreadPool -> Bool -> Bool -> m ()gi-glib GI.GLib.Structs.ThreadPool Frees all resources allocated for pool. If immediate is True, no new task is processed for pool. Otherwise pool is not freed before the last task is processed. Note however, that no thread of this pool is interrupted while processing a task. Instead at least all still running threads can finish their tasks before the pool is freed. If wait_ is True, this function does not return before all tasks to be processed (dependent on immediate, whether all or only the currently running) are ready. Otherwise this function returns immediately. After calling this function pool must not be used anymore.
threadPoolGetMaxIdleTime :: (HasCallStack, MonadIO m) => m Word32gi-glib GI.GLib.Structs.ThreadPool This function will return the maximum interval that a thread will wait in the thread pool for new tasks before being stopped. If this function returns 0, threads waiting in the thread pool for new work are not stopped. Since: 2.10
threadPoolGetMaxThreads :: (HasCallStack, MonadIO m) => ThreadPool -> m Int32gi-glib GI.GLib.Structs.ThreadPool Returns the maximal number of threads for pool.