From e6d0ea1671305a6abdd49e36b86c01e5d883f966 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Fri, 29 Jul 2011 14:10:09 +0000 Subject: [PATCH] [pykd] fixed: issue 9219 ( the call of the go() routine results in a deadlock for multithreading app ) git-svn-id: https://pykd.svn.codeplex.com/svn@68414 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgcmd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pykd/dbgcmd.h b/pykd/dbgcmd.h index 930ea88..7a868c1 100644 --- a/pykd/dbgcmd.h +++ b/pykd/dbgcmd.h @@ -24,8 +24,12 @@ setExecutionStatus() ULONG currentStatus; do { + + Py_BEGIN_ALLOW_THREADS hres = dbgExt->control->WaitForEvent( 0, INFINITE ); + + Py_END_ALLOW_THREADS if ( FAILED( hres ) ) throw DbgException( "IDebugControl::SetExecutionStatus failed" );