문제

I'm debugging a deadlock. I would like to wake up a thread that's waiting on a condition variable, so that I can trace as it re checks the sleep conditions. Sleeping on a condition variable is subject to spurious wake ups, so how can I force such a wake up?

도움이 되었습니까?

해결책

If you're using windbg you can call WakeAllConditionVariable in the debugee using windbg's .call command.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top