Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ParallelForDescriptor Struct Reference

#include <TaskPool.h>

Public Attributes

U32 _iterCount = 0u
 For loop iteration count.
 
U32 _partitionSize = 0u
 How many elements should we process per async task.
 
TaskPriority _priority = TaskPriority::DONT_CARE
 Each async task will start with the same priority specified here.
 
bool _waitForFinish = true
 If this is false, the Parallel_For call won't block the current thread.
 
bool _useCurrentThread = true
 If true, we'll process a for partition on the calling thread.
 
bool _allowPoolIdle = true
 If true, we'll inform the thread pool to execute other tasks while waiting for the all async tasks to finish.
 
bool _allowRunInIdle = true
 If true, async tasks can be invoked from other task's idle callbacks.
 

Detailed Description

Definition at line 40 of file TaskPool.h.

Member Data Documentation

◆ _allowPoolIdle

bool Divide::ParallelForDescriptor::_allowPoolIdle = true

If true, we'll inform the thread pool to execute other tasks while waiting for the all async tasks to finish.

Definition at line 53 of file TaskPool.h.

◆ _allowRunInIdle

bool Divide::ParallelForDescriptor::_allowRunInIdle = true

If true, async tasks can be invoked from other task's idle callbacks.

Definition at line 55 of file TaskPool.h.

◆ _iterCount

U32 Divide::ParallelForDescriptor::_iterCount = 0u

For loop iteration count.

Definition at line 43 of file TaskPool.h.

◆ _partitionSize

U32 Divide::ParallelForDescriptor::_partitionSize = 0u

How many elements should we process per async task.

Definition at line 45 of file TaskPool.h.

◆ _priority

TaskPriority Divide::ParallelForDescriptor::_priority = TaskPriority::DONT_CARE

Each async task will start with the same priority specified here.

Definition at line 47 of file TaskPool.h.

◆ _useCurrentThread

bool Divide::ParallelForDescriptor::_useCurrentThread = true

If true, we'll process a for partition on the calling thread.

Definition at line 51 of file TaskPool.h.

◆ _waitForFinish

bool Divide::ParallelForDescriptor::_waitForFinish = true

If this is false, the Parallel_For call won't block the current thread.

Definition at line 49 of file TaskPool.h.


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