提交 a21c08a9 编写于 作者: Z Zoltan Varga

Check the debugger_thread_exited condition in a loop to guard against spurious...

Check the debugger_thread_exited condition in a loop to guard against spurious wakeups. Fixes #642780.
上级 e763cd50
......@@ -906,7 +906,7 @@ mono_debugger_agent_cleanup (void)
//WaitForSingleObject (debugger_thread_handle, INFINITE);
if (GetCurrentThreadId () != debugger_thread_id) {
mono_mutex_lock (&debugger_thread_exited_mutex);
if (!debugger_thread_exited) {
while (!debugger_thread_exited) {
#ifdef HOST_WIN32
if (WAIT_TIMEOUT == WaitForSingleObject(debugger_thread_exited_cond, 0)) {
mono_mutex_unlock (&debugger_thread_exited_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册