Objectively
Object oriented framework for C.
Loading...
Searching...
No Matches
ThreadPoolWork Struct Reference

Overview

An opaque handle to a ThreadFunction submitted with ThreadPool::execute.

Remarks
A ThreadPoolWork MUST be passed to ThreadPool::wait exactly once, before the ThreadPool is released. ThreadPool::wait frees it.

Definition at line 50 of file ThreadPool.c.

Properties

ident data
 The user data.
 
ThreadFunction function
 The ThreadFunction.
 
bool isDetached
 true if the Thread that runs this ThreadPoolWork frees it.
 
ThreadPoolWork * next
 The next ThreadPoolWork in the queue, or NULL.
 
ThreadPool * pool
 The ThreadPool owning this work (weak reference).
 
ident result
 The return value of the ThreadFunction.
 
ThreadPoolWorkState state
 The state.
 

Property Details

◆ data

ident ThreadPoolWork::data

The user data.

Definition at line 59 of file ThreadPool.c.

◆ function

ThreadFunction ThreadPoolWork::function

The ThreadFunction.

Definition at line 54 of file ThreadPool.c.

◆ isDetached

bool ThreadPoolWork::isDetached

true if the Thread that runs this ThreadPoolWork frees it.

Definition at line 64 of file ThreadPool.c.

◆ next

ThreadPoolWork* ThreadPoolWork::next

The next ThreadPoolWork in the queue, or NULL.

Definition at line 69 of file ThreadPool.c.

◆ pool

ThreadPool* ThreadPoolWork::pool

The ThreadPool owning this work (weak reference).

Definition at line 74 of file ThreadPool.c.

◆ result

ident ThreadPoolWork::result

The return value of the ThreadFunction.

Definition at line 79 of file ThreadPool.c.

◆ state

ThreadPoolWorkState ThreadPoolWork::state

The state.

Definition at line 84 of file ThreadPool.c.


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