TDME2 1.9.121
Private Member Functions | Private Attributes | Friends | List of all members
Engine::EngineThread Class Reference
Inheritance diagram for Engine::EngineThread:
Inheritance graph
Collaboration diagram for Engine::EngineThread:
Collaboration graph

Private Member Functions

 EngineThread (int idx, Queue< EngineThreadQueueElement > *queue)
 Constructor. More...
 
virtual void run ()
 Run. More...
 
TransparentRenderFacesPoolgetTransparentRenderFacesPool ()
 
volatile int getProcessedElements ()
 
void resetProcessedElements ()
 Reset processed element count. More...
 

Private Attributes

int idx
 
Queue< EngineThreadQueueElement > * queue { nullptr }
 
TransparentRenderFacesPooltransparentRenderFacesPool { nullptr }
 
unordered_map< uint8_t, unordered_map< Model *, vector< Object3D * > > > objectsByShadersAndModels
 
volatile int elementsProcessed { 0 }
 

Friends

class Engine
 
class tdme::engine::subsystems::rendering::EntityRenderer
 

Additional Inherited Members

- Public Member Functions inherited from Thread
 Thread (const string &name, size_t stackSize=2 *1024 *1024)
 Public constructor. More...
 
virtual ~Thread ()
 Public destructor. More...
 
void join ()
 Blocks caller thread until this thread has been terminated. More...
 
void start ()
 Starts this objects thread. More...
 
virtual void run ()=0
 Abstract run() method, should be implemented by subclassed class, will be called after spawn by start() More...
 
void stop ()
 Requests that this thread should be stopped. More...
 
bool isStopRequested ()
 Returns if stop has been requested. More...
 
- Static Public Member Functions inherited from Thread
static int getHardwareThreadCount ()
 
static void sleep (const uint64_t milliseconds)
 sleeps current thread for given time in milliseconds More...
 

Detailed Description

Definition at line 315 of file Engine.h.

Constructor & Destructor Documentation

◆ EngineThread()

EngineThread ( int  idx,
Queue< EngineThreadQueueElement > *  queue 
)
private

Constructor.

Parameters
idxthread index
queuequeue

Definition at line 202 of file Engine.cpp.

Member Function Documentation

◆ getProcessedElements()

volatile int getProcessedElements ( )
inlineprivate
Returns
processed elements

Definition at line 348 of file Engine.h.

◆ getTransparentRenderFacesPool()

TransparentRenderFacesPool * getTransparentRenderFacesPool ( )
inlineprivate
Returns
transparent render faces pool

Definition at line 341 of file Engine.h.

◆ resetProcessedElements()

void resetProcessedElements ( )
inlineprivate

Reset processed element count.

Definition at line 355 of file Engine.h.

◆ run()

void run ( )
privatevirtual

Run.

Implements Thread.

Definition at line 210 of file Engine.cpp.

Friends And Related Function Documentation

◆ Engine

friend class Engine
friend

Definition at line 316 of file Engine.h.

◆ tdme::engine::subsystems::rendering::EntityRenderer

Definition at line 317 of file Engine.h.

Member Data Documentation

◆ elementsProcessed

volatile int elementsProcessed { 0 }
private

Definition at line 323 of file Engine.h.

◆ idx

int idx
private

Definition at line 319 of file Engine.h.

◆ objectsByShadersAndModels

unordered_map<uint8_t, unordered_map<Model*, vector<Object3D*> > > objectsByShadersAndModels
private

Definition at line 322 of file Engine.h.

◆ queue

Queue<EngineThreadQueueElement>* queue { nullptr }
private

Definition at line 320 of file Engine.h.

◆ transparentRenderFacesPool

TransparentRenderFacesPool* transparentRenderFacesPool { nullptr }
private

Definition at line 321 of file Engine.h.


The documentation for this class was generated from the following files: