└>Enlighten::IThreadGroup
└>Geo::IGeoReleasable
A thread group which executes Enlighten tasks by calling the AsyncTaskCallback a given number of times, and uses GeoEvent signalling to wait until all threads have completed execution.
Name | Description |
---|---|
AsyncTaskThreadGroup(AsyncTaskCallback, Geo::s32) | AsyncTaskThreadGroup constructor. |
GetNumThreads() | The number of threads in the thread group. |
GetNumThreads() | The number of threads in the thread group. |
Init() | Init() and Shutdown() will be called on the thread which calls Run() (ie the update manager worker thread) |
Init() | Init() and Shutdown() will be called on the thread which calls Run() (ie the update manager worker thread) |
Release() | This function will be called when MultithreadCpuWorker is destroyed. |
Release() | This function will be called when MultithreadCpuWorker is destroyed. |
Release() | Free this object that was created within the Enlighten libraries. |
Run(TaskProcessor *, const char *) | Run tasks using threads in the thread group. |
Run(TaskProcessor *, const char *) | Run tasks using threads in the thread group. |
Shutdown() | One-time shut down function. |
Shutdown() | One-time shut down function. |
public: AsyncTaskThreadGroup
(
AsyncTaskCallback callback,
Geo::s32 numThreads
)
AsyncTaskThreadGroup constructor.
public: virtual Geo::s32 GetNumThreads()
The number of threads in the thread group.
public: Geo::s32 GetNumThreads()
The number of threads in the thread group.
public: virtual void Init()
Init() and Shutdown() will be called on the thread which calls Run() (ie the update manager worker thread)
One-time initialisation function
public: void Init()
Init() and Shutdown() will be called on the thread which calls Run() (ie the update manager worker thread)
One-time initialisation function
public: virtual void Release()
This function will be called when MultithreadCpuWorker is destroyed.
public: void Release()
This function will be called when MultithreadCpuWorker is destroyed.
public: void Release()
Free this object that was created within the Enlighten libraries.
Expect this to behave in a similar way to calling 'delete(this)'
public: virtual void Run
(
TaskProcessor * taskProcessors,
const char * name
)
Run tasks using threads in the thread group.
The array of task processors will have the number of elements returned by GetNumThreads(). The name parameter will describe which Enlighten processing stage is being run, for profiling purposes.
public: void Run
(
TaskProcessor * taskProcessors,
const char * name
)
Run tasks using threads in the thread group.
The array of task processors will have the number of elements returned by GetNumThreads(). The name parameter will describe which Enlighten processing stage is being run, for profiling purposes.
public: virtual void Shutdown()
One-time shut down function.
public: void Shutdown()
One-time shut down function.