提交 f3f8c748 编写于 作者: A Andrew Scheidecker 提交者: Matt Witherspoon

Fix crash when waking more threads than are waiting on an address

上级 4f7364ac
......@@ -194,7 +194,7 @@ static U32 wakeAddress(Uptr address,U32 numToWake)
}
// Remove the events from the wait list.
waitList->wakeEvents.erase(waitList->wakeEvents.begin(),waitList->wakeEvents.begin() + numToWake);
waitList->wakeEvents.erase(waitList->wakeEvents.begin(),waitList->wakeEvents.begin() + actualNumToWake);
}
closeWaitList(address,waitList);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册