CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
vx_threadpool_t Struct Reference

The threadpool tracking structure. More...

#include <vx_internal.h>

Public Attributes

uint32_t numWorkers
 The number of threads in the pool.
 
uint32_t numWorkItems
 The maximum number of threads in the queue.
 
uint32_t sizeWorkItem
 Unit size of a work item.
 
int32_t numCurrentItems
 The number of corrent items in the queue.
 
vx_threadpool_worker_tworkers
 The array of workers.
 
uint32_t nextWorkerIndex
 The next index to submit work to.
 
vx_sem_t sem
 The semaphore which protect access to the work queues.
 
vx_internal_event_t completed
 The event which indicates that all work is completed.
 

Detailed Description

The threadpool tracking structure.

Member Data Documentation

◆ completed

vx_internal_event_t vx_threadpool_t::completed

The event which indicates that all work is completed.

◆ nextWorkerIndex

uint32_t vx_threadpool_t::nextWorkerIndex

The next index to submit work to.

◆ numCurrentItems

int32_t vx_threadpool_t::numCurrentItems

The number of corrent items in the queue.

◆ numWorkers

uint32_t vx_threadpool_t::numWorkers

The number of threads in the pool.

◆ numWorkItems

uint32_t vx_threadpool_t::numWorkItems

The maximum number of threads in the queue.

◆ sem

vx_sem_t vx_threadpool_t::sem

The semaphore which protect access to the work queues.

◆ sizeWorkItem

uint32_t vx_threadpool_t::sizeWorkItem

Unit size of a work item.

◆ workers

vx_threadpool_worker_t* vx_threadpool_t::workers

The array of workers.