The Nebula Device 3: Jobs::TPJobCommand Class Reference

From The Nebula Device 3

Jobs::TPJobCommand Class Reference

#include <tpjobcommand.h>


Detailed Description

A command queue entry for the worker threads.

(C) 2009 Radon Labs GmbH

Public Types

enum  Code
 commands

Public Member Functions

 TPJobCommand ()
 constructor
void SetupSync (const Threading::Event *syncEvent)
 setup for sync command
void SetupRun (TPJobSlice *firstSlice, ushort numSlices, ushort stride)
 setup for run job slices command
Code GetCode () const
 get the command code
const Threading::Event * GetSyncEvent () const
 get pointer to sync event object
TPJobSlice * GetFirstSlice () const
 get pointer to first job slice
ushort GetNumSlices () const
 get number of slices
ushort GetStride () const
 get slice array stride