Add PreloadItem::abort() to avoid no longer required cells from blocking the work thread

This commit is contained in:
scrawl 2017-02-09 01:08:07 +01:00
parent d62c4259bd
commit a46593fa74
2 changed files with 26 additions and 0 deletions

View file

@ -31,6 +31,9 @@ namespace SceneUtil
/// Internal use by the WorkQueue.
void signalDone();
/// Set abort flag in order to return from doWork() as soon as possible. May not be respected by all WorkItems.
virtual void abort() {}
protected:
OpenThreads::Atomic mDone;
OpenThreads::Mutex mMutex;