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.

  1. 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 ]
    

  2. 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.

  3. threadPoolGetMaxIdleTime :: (HasCallStack, MonadIO m) => m Word32

    gi-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

  4. threadPoolGetMaxThreads :: (HasCallStack, MonadIO m) => ThreadPool -> m Int32

    gi-glib GI.GLib.Structs.ThreadPool

    Returns the maximal number of threads for pool.

  5. threadPoolGetMaxUnusedThreads :: (HasCallStack, MonadIO m) => m Int32

    gi-glib GI.GLib.Structs.ThreadPool

    Returns the maximal allowed number of unused threads.

  6. threadPoolGetNumThreads :: (HasCallStack, MonadIO m) => ThreadPool -> m Word32

    gi-glib GI.GLib.Structs.ThreadPool

    Returns the number of threads currently running in pool.

  7. threadPoolGetNumUnusedThreads :: (HasCallStack, MonadIO m) => m Word32

    gi-glib GI.GLib.Structs.ThreadPool

    Returns the number of currently unused threads.

  8. threadPoolMoveToFront :: (HasCallStack, MonadIO m) => ThreadPool -> Ptr () -> m Bool

    gi-glib GI.GLib.Structs.ThreadPool

    Moves the item to the front of the queue of unprocessed items, so that it will be processed next. Since: 2.46

  9. threadPoolPush :: (HasCallStack, MonadIO m) => ThreadPool -> Ptr () -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    Inserts data into the list of tasks to be executed by pool. When the number of currently running threads is lower than the maximal allowed number of threads, a new thread is started (or reused) with the properties given to g_thread_pool_new(). Otherwise, data stays in the queue until a thread in this pool finishes its previous task and processes data. error can be Nothing to ignore errors, or non-Nothing to report errors. An error can only occur when a new thread couldn't be created. In that case data is simply appended to the queue of work to do. Before version 2.32, this function did not return a success status.

  10. threadPoolSetMaxIdleTime :: (HasCallStack, MonadIO m) => Word32 -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    This function will set the maximum interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling threadPoolStopUnusedThreads on a regular timeout, except this is done on a per thread basis. By setting interval to 0, idle threads will not be stopped. The default value is 15000 (15 seconds). Since: 2.10

Page 488 of many | Previous | Next