ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
thread_pool_work_entry Struct Reference

One queued function call waiting for a thread-pool worker. More...

#include <include/ascii-chat/thread_pool.h>

Data Fields

void *(* work_func )(void *)
 Work function to execute.
void * work_arg
 Argument passed to work function.
struct thread_pool_work_entry * next
 Linked list next pointer.

Detailed Description

One queued function call waiting for a thread-pool worker.

The pool stores the callback, its opaque argument, and the link to the next queued task. Queue ownership transfers to the pool when a task is submitted; workers remove and free entries after invoking the callback.

Definition at line 99 of file thread_pool.h.

Field Documentation

◆ next

struct thread_pool_work_entry* thread_pool_work_entry::next

Linked list next pointer.

Definition at line 102 of file thread_pool.h.

Referenced by thread_pool_destroy(), and thread_pool_queue_work().

◆ work_arg

void* thread_pool_work_entry::work_arg

Argument passed to work function.

Definition at line 101 of file thread_pool.h.

Referenced by thread_pool_queue_work().

◆ work_func

void *(* thread_pool_work_entry::work_func) (void *)

Work function to execute.

Definition at line 100 of file thread_pool.h.

Referenced by thread_pool_queue_work().


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