Versions Compared

Key

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

class Enlighten::Command

Basic interface for commands to be executed on the worker thread.

Worker thread commands can be enqueued by the rendering thread in a ring buffer, for later execution by the worker thread. The IUpdateManager interface has many Enqueue commands for convenience, but arbitrary worker thread code can be enqueued by inheriting from this interface.

Functions

NameDescription
Execute(IUpdateManagerWorker *)

Function called when the command is executed, which will happen on the worker thread if one is running.


Anchor
a7f0cbf451feee3adc7d42c4f89173935
a7f0cbf451feee3adc7d42c4f89173935

virtual void Enlighten::Command::Execute

...

public: virtual void Execute
(
    IUpdateManagerWorker * worker
)

...

Function called when the command is executed, which will happen on the worker thread if one is running.