mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #384 from 'henriquegemignani-feature/lockless-dvdfile-destructor'
This commit is contained in:
commit
5bb3dc86dd
|
@ -28,6 +28,9 @@ public:
|
||||||
}
|
}
|
||||||
bool IsComplete() override { return m_complete.load(); }
|
bool IsComplete() override { return m_complete.load(); }
|
||||||
void PostCancelRequest() override {
|
void PostCancelRequest() override {
|
||||||
|
if (m_complete.load() || m_cancel.load()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
std::unique_lock waitlk{CDvdFile::m_WaitMutex};
|
std::unique_lock waitlk{CDvdFile::m_WaitMutex};
|
||||||
m_cancel.store(true);
|
m_cancel.store(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue