#include <jobs.h>
Inherits Thread.
◆ JobThreadCommandType
Enumerator |
---|
RunJob | |
Signal | |
Wait | |
WaitAndReset | |
◆ JobThread()
Jobs::JobThread::JobThread |
( |
| ) |
|
◆ ~JobThread()
Jobs::JobThread::~JobThread |
( |
| ) |
|
|
virtual |
◆ __DeclareClass()
Jobs::JobThread::__DeclareClass |
( |
JobThread | | ) |
|
|
private |
◆ DoWork()
void Jobs::JobThread::DoWork |
( |
| ) |
|
this method runs in the thread context
◆ EmitWakeupSignal()
void Jobs::JobThread::EmitWakeupSignal |
( |
| ) |
|
called if thread needs a wakeup call before stopping
◆ HasWork()
bool Jobs::JobThread::HasWork |
( |
| ) |
|
returns true if thread has work
◆ PushCommand()
◆ PushCommands()
◆ RunJobSlices()
void Jobs::JobThread::RunJobSlices |
( |
uint | sliceIndex, |
|
|
uint | numSlices, |
|
|
const JobContext | ctx, |
|
|
void(* | JobFunc )(const JobFuncContext &ctx), |
|
|
const std::function< void()> * | callback ) |
◆ commands
◆ MaxScratchSize
const SizeT Jobs::JobThread::MaxScratchSize = (64 * 1024) |
|
staticprivate |
◆ scratchBuffer
ubyte* Jobs::JobThread::scratchBuffer |
|
private |
The documentation for this class was generated from the following files:
- /github/workspace/code/foundation/jobs/jobs.h
- /github/workspace/code/foundation/jobs/jobs.cc