26#ifndef __OgreDefaultWorkQueueTBB_H__
27#define __OgreDefaultWorkQueueTBB_H__
58 virtual void startup(
bool forceRestart =
true);
Base for a general purpose request / response style background work queue.
Implementation of a general purpose request / response style background work queue.
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)