ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
thread_pool_work_entry Struct Reference

Work queue entry for task-based thread pools. 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

Work queue entry for task-based thread pools.

Represents a single unit of work to be executed by a pool worker.

Definition at line 87 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 90 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 89 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 88 of file thread_pool.h.

Referenced by thread_pool_queue_work().


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