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

Thread pool entry (internal linked list node) More...

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

Data Fields

asciichat_thread_t thread
 Thread handle.
 
int stop_id
 Cleanup order (lower = stop first, -1 = unordered)
 
void *(* thread_func )(void *)
 Thread function.
 
void * thread_arg
 Thread argument.
 
char name [64]
 Thread name for debugging.
 
struct thread_pool_entry * next
 Linked list next pointer.
 

Detailed Description

Thread pool entry (internal linked list node)

Tracks individual threads in the pool. Threads are maintained in a sorted linked list by stop_id for ordered cleanup.

Definition at line 99 of file thread_pool.h.

Field Documentation

◆ name

char thread_pool_entry::name[64]

Thread name for debugging.

Definition at line 104 of file thread_pool.h.

Referenced by thread_pool_create_with_workers(), thread_pool_interrupt_all(), thread_pool_spawn(), and thread_pool_stop_all().

◆ next

struct thread_pool_entry* thread_pool_entry::next

Linked list next pointer.

Definition at line 105 of file thread_pool.h.

Referenced by thread_pool_create_with_workers(), thread_pool_interrupt_all(), thread_pool_spawn(), and thread_pool_stop_all().

◆ stop_id

int thread_pool_entry::stop_id

Cleanup order (lower = stop first, -1 = unordered)

Definition at line 101 of file thread_pool.h.

Referenced by thread_pool_create_with_workers(), thread_pool_spawn(), and thread_pool_stop_all().

◆ thread

asciichat_thread_t thread_pool_entry::thread

◆ thread_arg

void* thread_pool_entry::thread_arg

Thread argument.

Definition at line 103 of file thread_pool.h.

Referenced by thread_pool_create_with_workers(), and thread_pool_spawn().

◆ thread_func

void *(* thread_pool_entry::thread_func) (void *)

Thread function.

Definition at line 102 of file thread_pool.h.

Referenced by thread_pool_create_with_workers(), and thread_pool_spawn().


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