26 #ifndef __OgreDefaultWorkQueueTBB_H__
27 #define __OgreDefaultWorkQueueTBB_H__
29 #include "../OgreWorkQueue.h"
38 class _OgreExport DefaultWorkQueue :
public DefaultWorkQueueBase
58 virtual void startup(
bool forceRestart =
true);
virtual void _threadMain()
Process the next request on the queue.
tbb::task_scheduler_init mTaskScheduler
virtual void startup(bool forceRestart=true)
Start up the queue with the options that have been set.
OGRE_MUTEX(mRegisterRSMutex)
Synchronise registering threads with the RenderSystem.
virtual ~DefaultWorkQueue()
std::set< tbb::tbb_thread::id > mRegisteredThreads
virtual void shutdown()
Shut down the queue.
tbb::task_group mTaskGroup
virtual void notifyWorkers()
Notify workers about a new request.
void _registerThreadWithRenderSystem()
Register the current thread with the rendersystem.
DefaultWorkQueue(const String &name=StringUtil::BLANK)
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.