libsqsh v1.5.1
Loading...
Searching...
No Matches
SqshThreadpool Struct Reference

#include <sqsh_posix_private.h>

Public Member Functions

struct SqshThreadpoolsqsh_threadpool_new (size_t threads, int *err)
 creates a new threadpool.
 
int sqsh__threadpool_cleanup (struct SqshThreadpool *pool)
 cleans up a threadpool.
 
int sqsh_threadpool_free (struct SqshThreadpool *pool)
 creates a new threadpool.
 

Data Fields

struct CxThreadpool pool
 

Detailed Description

Definition at line 45 of file sqsh_posix_private.h.

Member Function Documentation

◆ sqsh__threadpool_cleanup()

int sqsh__threadpool_cleanup ( struct SqshThreadpool * pool)

cleans up a threadpool.

Parameters
[in]poolThe threadpool to uclean.
Returns
The threadpool on success, NULL on error.

◆ sqsh_threadpool_free()

int sqsh_threadpool_free ( struct SqshThreadpool * pool)

creates a new threadpool.

Parameters
[in]poolThe threadpool to free.
Returns
0 on success, less than 0 on error.

◆ sqsh_threadpool_new()

struct SqshThreadpool * sqsh_threadpool_new ( size_t threads,
int * err )

creates a new threadpool.

Parameters
[in]threadsThe number of threads to use. Use 0 to use the number of available cores.
[out]errThe error code.
Returns
The threadpool on success, NULL on error.

Field Documentation

◆ pool

struct CxThreadpool SqshThreadpool::pool

Definition at line 46 of file sqsh_posix_private.h.


The documentation for this struct was generated from the following files: