OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
SceneUtil::WorkItem Class Reference

#include <workqueue.hpp>

Inheritance diagram for SceneUtil::WorkItem:
Collaboration diagram for SceneUtil::WorkItem:

Public Member Functions

 WorkItem ()
 
virtual ~WorkItem ()
 
virtual void doWork ()
 Override in a derived WorkItem to perform actual work. More...
 
bool isDone () const
 
void waitTillDone ()
 Wait until the work is completed. Usually called from the main thread. More...
 
void signalDone ()
 Internal use by the WorkQueue. More...
 

Protected Attributes

OpenThreads::Atomic mDone
 
OpenThreads::Mutex mMutex
 
OpenThreads::Condition mCondition
 

Constructor & Destructor Documentation

SceneUtil::WorkItem::WorkItem ( )
SceneUtil::WorkItem::~WorkItem ( )
virtual

Member Function Documentation

virtual void SceneUtil::WorkItem::doWork ( )
inlinevirtual

Override in a derived WorkItem to perform actual work.

Reimplemented in MWWorld::UpdateCacheItem, MWRender::PreloadCommonAssetsWorkItem, MWWorld::PreloadItem, and SceneUtil::UnrefWorkItem.

bool SceneUtil::WorkItem::isDone ( ) const
void SceneUtil::WorkItem::signalDone ( )

Internal use by the WorkQueue.

void SceneUtil::WorkItem::waitTillDone ( )

Wait until the work is completed. Usually called from the main thread.

Member Data Documentation

OpenThreads::Condition SceneUtil::WorkItem::mCondition
protected
OpenThreads::Atomic SceneUtil::WorkItem::mDone
protected
OpenThreads::Mutex SceneUtil::WorkItem::mMutex
protected

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