26#ifndef __OgreDefaultWorkQueueStandard_H__
27#define __OgreDefaultWorkQueueStandard_H__
52 virtual void startup(
bool forceRestart =
true);
73#if OGRE_THREAD_SUPPORT
75 WorkerThreadList mWorkers;
DefaultWorkQueueBase(const String &name=StringUtil::BLANK)
Constructor.
virtual void _threadMain()
Main function for each thread spawned.
size_t mNumThreadsRegisteredWithRS
virtual void startup(bool forceRestart=true)
Start up the queue with the options that have been set.
virtual void waitForNextRequest()
To be called by a separate thread; will return immediately if there are items in the queue,...
virtual void notifyThreadRegistered()
Notify that a thread has registered itself with the render system.
OGRE_THREAD_SYNCHRONISER(mInitSync)
Synchroniser token to wait / notify on thread init.
virtual ~DefaultWorkQueue()
virtual void shutdown()
Shut down the queue.
OGRE_MUTEX(mInitMutex)
Init notification mutex (must lock before waiting on initCondition)
OGRE_THREAD_SYNCHRONISER(mRequestCondition)
virtual void notifyWorkers()
Notify workers about a new request.
DefaultWorkQueue(const String &name=StringUtil::BLANK)
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.