mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Add PreloadItem::abort() to avoid no longer required cells from blocking the work thread
This commit is contained in:
parent
d62c4259bd
commit
a46593fa74
2 changed files with 26 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue