Fix bug with sleep - wake is not cleared after it occurs
Do not initialize waitcondition with capacity
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct WaitCondition {
|
||||
impl WaitCondition {
|
||||
pub fn new() -> WaitCondition {
|
||||
WaitCondition {
|
||||
contexts: Mutex::new(Vec::with_capacity(16))
|
||||
contexts: Mutex::new(Vec::new())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user