solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Attributes | List of all members
Task Struct Reference

A unit of work submitted to the pool. More...

#include <threadpool.h>

Public Attributes

void(* function )(void *arg)
 
void * arg
 

Detailed Description

A unit of work submitted to the pool.

Tasks are value types — they are copied into the pool's internal queues on submission. The caller does not need to keep the Task object alive after threadpool_submit or threadpool_submit_batch returns.

Definition at line 108 of file threadpool.h.

Member Data Documentation

◆ arg

void* Task::arg

Opaque argument forwarded to function unchanged.

Definition at line 110 of file threadpool.h.

◆ function

void(* Task::function) (void *arg)

Function to execute. Must not be NULL.

Definition at line 109 of file threadpool.h.


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