naev 0.12.5
vpoolThreadData Struct Reference

Virtual thread pool data. More...

Collaboration diagram for vpoolThreadData:

Data Fields

SDL_cond * cond
SDL_mutex * mutex
int * count
ThreadQueueData node
ThreadQueueData wrapper

Detailed Description

Virtual thread pool data.

Definition at line 103 of file threadpool.c.

Field Documentation

◆ cond

SDL_cond* vpoolThreadData::cond

Condition variable for signalling all jobs in the vpool are done

Definition at line 104 of file threadpool.c.

◆ count

int* vpoolThreadData::count

Variable to count number of finished jobs in the vpool

Definition at line 107 of file threadpool.c.

◆ mutex

SDL_mutex* vpoolThreadData::mutex

The mutex to use with the above condition variable

Definition at line 106 of file threadpool.c.

◆ node

ThreadQueueData vpoolThreadData::node

The job to be done

Definition at line 108 of file threadpool.c.

◆ wrapper

ThreadQueueData vpoolThreadData::wrapper

Wrapper to avoid malloc.

Definition at line 109 of file threadpool.c.


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