Nebula
Loading...
Searching...
No Matches
Resources::ResourceLoaderThread Class Reference

#include <resourceloaderthread.h>

Inherits Thread.

Public Member Functions

 ResourceLoaderThread ()
 constructor
 
virtual ~ResourceLoaderThread ()
 destructor
 
void Wait ()
 wait for the thread to be done (must be called from outside this thread!)
 

Private Member Functions

 __DeclareClass (ResourceLoaderThread)
 
void DoWork () override
 perform work
 
virtual void EmitWakeupSignal () override
 emit wakeup signal
 

Private Attributes

Threading::SafeQueue< std::function< void()> > jobs
 
Threading::Event completeEvent
 
Ptr< IO::IoServerioServer
 

Friends

class ResourceLoader
 

Constructor & Destructor Documentation

◆ ResourceLoaderThread()

Resources::ResourceLoaderThread::ResourceLoaderThread ( )

constructor

◆ ~ResourceLoaderThread()

Resources::ResourceLoaderThread::~ResourceLoaderThread ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

Resources::ResourceLoaderThread::__DeclareClass ( ResourceLoaderThread )
private

◆ DoWork()

void Resources::ResourceLoaderThread::DoWork ( )
overrideprivate

perform work

◆ EmitWakeupSignal()

void Resources::ResourceLoaderThread::EmitWakeupSignal ( )
overrideprivatevirtual

emit wakeup signal

◆ Wait()

void Resources::ResourceLoaderThread::Wait ( )

wait for the thread to be done (must be called from outside this thread!)

Friends And Related Symbol Documentation

◆ ResourceLoader

friend class ResourceLoader
friend

Member Data Documentation

◆ completeEvent

Threading::Event Resources::ResourceLoaderThread::completeEvent
private

◆ ioServer

Ptr<IO::IoServer> Resources::ResourceLoaderThread::ioServer
private

◆ jobs

Threading::SafeQueue<std::function<void()> > Resources::ResourceLoaderThread::jobs
private

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