|
|
@ -147,6 +147,8 @@ public: |
|
|
return reselection_pending.load(); |
|
|
return reselection_pending.load(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Shutdown(); |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
bool AskForReselectionOrMarkRedundant(Thread* current_thread, Thread* winner); |
|
|
bool AskForReselectionOrMarkRedundant(Thread* current_thread, Thread* winner); |
|
|
|
|
|
|
|
|
@ -189,6 +191,11 @@ public: |
|
|
return context_switch_pending; |
|
|
return context_switch_pending; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Shutdown() { |
|
|
|
|
|
current_thread = nullptr; |
|
|
|
|
|
selected_thread = nullptr; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
friend class GlobalScheduler; |
|
|
friend class GlobalScheduler; |
|
|
/** |
|
|
/** |
|
|
|