SCC: Small corrections to CancelSynchronization

This commit is contained in:
Fernando Sahmkow 2020-03-07 10:24:46 -04:00
parent 44cb9997b3
commit a66c61ca2d
3 changed files with 14 additions and 2 deletions

View file

@ -556,6 +556,14 @@ public:
waiting_for_arbitration = set;
}
bool IsWaitingSync() const {
return is_waiting_on_sync;
}
void SetWaitingSync(bool is_waiting) {
is_waiting_on_sync = is_waiting;
}
private:
friend class GlobalScheduler;
friend class Scheduler;
@ -650,6 +658,7 @@ private:
u32 scheduling_state = 0;
bool is_running = false;
bool is_waiting_on_sync = false;
bool is_sync_cancelled = false;
bool will_be_terminated{};