|
|
@ -204,20 +204,26 @@ public:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case STATUS_UPDATE:
|
|
|
|
case STATUS_UPDATE:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (NLMISC::CSynchronized<bool>::CAccessor(&m_StatusUpdateMasterDone).value()
|
|
|
|
NLMISC::CSynchronized<bool>::CAccessor statusUpdateMasterDone(&m_StatusUpdateMasterDone);
|
|
|
|
&& NLMISC::CSynchronized<bool>::CAccessor(&m_StatusUpdateSlaveDone).value())
|
|
|
|
if (statusUpdateMasterDone.value())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (m_AbortRequested)
|
|
|
|
NLMISC::CSynchronized<bool>::CAccessor statusUpdateSlaveDone(&m_StatusUpdateSlaveDone);
|
|
|
|
|
|
|
|
if (statusUpdateSlaveDone.value())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("Aborted slave task after status update");
|
|
|
|
statusUpdateMasterDone.value() = false;
|
|
|
|
finalizeAbort();
|
|
|
|
statusUpdateSlaveDone.value() = false;
|
|
|
|
}
|
|
|
|
if (m_AbortRequested)
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlinfo("Aborted slave task after status update");
|
|
|
|
nlinfo("Slave task: Status update done");
|
|
|
|
finalizeAbort();
|
|
|
|
m_SlaveTaskState = SOMEWHERE_INBETWEEN;
|
|
|
|
}
|
|
|
|
// Done with the status updating, now do something fancey
|
|
|
|
else
|
|
|
|
// ... TODO ...
|
|
|
|
{
|
|
|
|
|
|
|
|
nlinfo("Slave task: Status update done");
|
|
|
|
|
|
|
|
m_SlaveTaskState = SOMEWHERE_INBETWEEN;
|
|
|
|
|
|
|
|
// Done with the status updating, now do something fancey
|
|
|
|
|
|
|
|
// ... TODO ...
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|