mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Update mxdiskstreamprovider.cpp
This commit is contained in:
parent
2baf139d20
commit
eff482b0a5
@ -135,7 +135,7 @@ void MxDiskStreamProvider::PerformWork()
|
|||||||
MxDSStreamingAction* action;
|
MxDSStreamingAction* action;
|
||||||
{
|
{
|
||||||
MxAutoLocker lock(&m_criticalSection);
|
MxAutoLocker lock(&m_criticalSection);
|
||||||
if (m_list.size() != 0 && !FUN_100d1af0((MxDSStreamingAction*)m_list.front())) {
|
if (m_list.size() != 0 && !FUN_100d1af0((MxDSStreamingAction*) m_list.front())) {
|
||||||
MxThread::Sleep(500);
|
MxThread::Sleep(500);
|
||||||
m_busySemaphore.Release(1);
|
m_busySemaphore.Release(1);
|
||||||
return;
|
return;
|
||||||
@ -145,7 +145,7 @@ void MxDiskStreamProvider::PerformWork()
|
|||||||
{
|
{
|
||||||
MxAutoLocker lock(&m_criticalSection);
|
MxAutoLocker lock(&m_criticalSection);
|
||||||
if (m_list.size() != 0) {
|
if (m_list.size() != 0) {
|
||||||
action = (MxDSStreamingAction*)m_list.front();
|
action = (MxDSStreamingAction*) m_list.front();
|
||||||
m_list.pop_front();
|
m_list.pop_front();
|
||||||
|
|
||||||
// TODO delete lock here (could be an line function)
|
// TODO delete lock here (could be an line function)
|
||||||
@ -177,8 +177,7 @@ void MxDiskStreamProvider::PerformWork()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action)
|
if (action) {
|
||||||
{
|
|
||||||
((MxDiskStreamController*) m_pLookup)->FUN_100c8670(action);
|
((MxDiskStreamController*) m_pLookup)->FUN_100c8670(action);
|
||||||
}
|
}
|
||||||
MxThread::Sleep(0);
|
MxThread::Sleep(0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user