revert previous change in cond var waiter move
using swap has a race condition: the waiters must be added to the mutex waiter count *before* they are taken off the cond var waiter count, or wake events can be lost.
Showing
想要评论请 注册 或 登录