Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::TaskProcessor

TaskProcessor runs a loop for pulling tasks off the current queue until either the whole list is done, or an ILimiter tells it to stop.

Functions

NameDescription
operator()()

Operator () overload.

SetData(MultithreadCpuWorkerCommon *, ILimiter *, Geo::s32)

A separate SetData function is required since MultithreadCpuWorker creates an array of TaskProcessors.


Anchor
aca2e8fd7654a941c65320770cb6d5ae8
aca2e8fd7654a941c65320770cb6d5ae8

void Enlighten::TaskProcessor::operator()

...

public: void operator()() const

...

Operator () overload.


Anchor
ab7b9869ad03f99f4510dfd9571eb9b16
ab7b9869ad03f99f4510dfd9571eb9b16

void Enlighten::TaskProcessor::SetData

...

public: void SetData
(
    MultithreadCpuWorkerCommon * worker,
    ILimiter * limiter,
    Geo::s32 threadId
)

...

A separate SetData function is required since MultithreadCpuWorker creates an array of TaskProcessors.