## ide-thread-pool ide-thread-pool |

## Functions

void | (*IdeThreadFunc) ()
void | ide_thread_pool_push ()
void | ide_thread_pool_push_with_priority ()
void | ide_thread_pool_push_task ()

## Types and Values

enum | IdeThreadPoolKind
| IdeThreadPool

## Description

## Functions

### IdeThreadFunc ()

    void
    (*IdeThreadFunc) (gpointer user_data);

#### Parameters

user_data | The closure for the callback. | [closure][transfer full]

Since: 3.32

### ide_thread_pool_push ()

    void
    ide_thread_pool_push (IdeThreadPoolKind kind,
                          IdeThreadFunc func,
                          gpointer func_data);

Runs the callback on the thread pool thread.

#### Parameters

kind | the threadpool kind to use. |
func | A function to call in the worker thread. | [scope async][closure func_data]
func_data | user data for `func` . |

Since: 3.32

### ide_thread_pool_push_with_priority ()

    void
    ide_thread_pool_push_with_priority (IdeThreadPoolKind kind,
                                        gint priority,
                                        IdeThreadFunc func,
                                        gpointer func_data);

Runs the callback on the thread pool thread.

#### Parameters

kind | the threadpool kind to use. |
priority | the priority for func |
func | A function to call in the worker thread. | [scope async][closure func_data]
func_data | user data for `func` . |

Since: 3.32

### ide_thread_pool_push_task ()

    void
    ide_thread_pool_push_task (IdeThreadPoolKind kind,
                               GTask *task,
                               GTaskThreadFunc func);

This pushes a task to be executed on a worker thread based on the task kind as denoted by `kind` . Some tasks will be placed on special work queues or throttled based on priority.

#### Parameters

kind | The task kind. |
task | a GTask to execute. |
func | The thread worker to execute for `task` . | [scope async]

Since: 3.32

## Types and Values

### enum IdeThreadPoolKind

#### Members

IDE_THREAD_POOL_DEFAULT |  |
IDE_THREAD_POOL_COMPILER |  |
IDE_THREAD_POOL_INDEXER |  |
IDE_THREAD_POOL_IO |  |
IDE_THREAD_POOL_LAST |  |

### IdeThreadPool

    typedef struct _IdeThreadPool IdeThreadPool;