[zion/glacier] Move RefPtr to glacier.
This commit is contained in:
parent
8bcb574677
commit
e1af79b975
26 changed files with 130 additions and 106 deletions
|
|
@ -59,7 +59,7 @@ void Scheduler::Preempt() {
|
|||
return;
|
||||
}
|
||||
|
||||
RefPtr<Thread> prev = current_thread_;
|
||||
glcr::RefPtr<Thread> prev = current_thread_;
|
||||
prev->SetState(Thread::RUNNABLE);
|
||||
current_thread_ = runnable_threads_.CycleFront(prev);
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ void Scheduler::Yield() {
|
|||
}
|
||||
asm volatile("cli");
|
||||
|
||||
RefPtr<Thread> prev = current_thread_;
|
||||
glcr::RefPtr<Thread> prev = current_thread_;
|
||||
if (prev == sleep_thread_) {
|
||||
if (runnable_threads_.size() == 0) {
|
||||
panic("Sleep thread yielded without next.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue