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

Work item — passed by pointer to kl_thread_pool_submit. Copied into the internal queue (caller can stack-allocate). More...

#include <thread_pool.h>

Data Fields

KlWorkFn work_fn
 
KlWorkDoneFn done_fn
 
KlWorkCancelFn cancel_fn
 
void * user_data
 

Detailed Description

Work item — passed by pointer to kl_thread_pool_submit. Copied into the internal queue (caller can stack-allocate).

Field Documentation

◆ work_fn

KlWorkFn KlWorkItem::work_fn

Runs on worker thread

◆ done_fn

KlWorkDoneFn KlWorkItem::done_fn

Runs on event loop thread

◆ cancel_fn

KlWorkCancelFn KlWorkItem::cancel_fn

Runs on shutdown if item never started (may be NULL)

◆ user_data

void* KlWorkItem::user_data

Opaque — passed to all three callbacks


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