ThreadedTaskManager::AddWorkerThreads

ThreadedTaskManager::AddWorkerThreads
bool AddWorkerThreads(unsigned taskMask, unsigned count, UPInt stackSize = 128 * 1024, int processor = -1);
Description

AddWorkerThreads adds a specified number of worker threads working on a given processor. If this method is not called, threads will be created for each task.

Parameters
Parameters 
Description 
unsigned taskMask 
Specifies which type of task created threads can execute. 
unsigned count 
Number of simultaneously executed tasks. 
UPInt stackSize = 128 * 1024 
Stack size for created threads. 
int processor = -1 
Core number on which created threads should be executed. -1 means OS should decide the parameter (this parameter is most useful for Xbox 360 because OS by default execute threads on the core on which those threads were created).