KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlThreadPoolConfig Struct Reference

Thread pool configuration. All fields have sensible defaults when set to 0/NULL. More...

#include <thread_pool.h>

Collaboration diagram for KlThreadPoolConfig:
Collaboration graph
[legend]

Data Fields

int num_workers
 
int queue_capacity
 
KlAllocatoralloc
 

Detailed Description

Thread pool configuration. All fields have sensible defaults when set to 0/NULL.

Field Documentation

◆ num_workers

int KlThreadPoolConfig::num_workers

0 = auto-detect via sysconf(_SC_NPROCESSORS_ONLN)

◆ queue_capacity

int KlThreadPoolConfig::queue_capacity

Max items in work queue (0 = 64)

◆ alloc

KlAllocator* KlThreadPoolConfig::alloc

NULL = ctx's allocator


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