Deficit based Weighted Round Robin Scheduler
This commit is contained in:
committed by
Jeremy Soller
parent
74895c4f0f
commit
b7dabfc3c2
@@ -33,7 +33,8 @@ impl WaitCondition {
|
||||
let len = contexts.len();
|
||||
while let Some(context_weak) = contexts.pop() {
|
||||
if let Some(context_ref) = context_weak.upgrade() {
|
||||
context_ref.write(token.token()).unblock();
|
||||
// context_ref.write(token.token()).unblock();
|
||||
context::wakeup_context(&context_ref);
|
||||
}
|
||||
}
|
||||
len
|
||||
@@ -46,7 +47,8 @@ impl WaitCondition {
|
||||
let len = contexts.len();
|
||||
for context_weak in contexts.iter() {
|
||||
if let Some(context_ref) = context_weak.upgrade() {
|
||||
context_ref.write(token.token()).unblock();
|
||||
// context_ref.write(token.token()).unblock();
|
||||
context::wakeup_context(&context_ref);
|
||||
}
|
||||
}
|
||||
len
|
||||
|
||||
Reference in New Issue
Block a user