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

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.