summaryrefslogtreecommitdiffstats
path: root/uisimulator/win32/uisw32.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/uisw32.c')
-rw-r--r--uisimulator/win32/uisw32.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c
index 02697be443..f492b9de36 100644
--- a/uisimulator/win32/uisw32.c
+++ b/uisimulator/win32/uisw32.c
@@ -262,10 +262,9 @@ int GUIDown ()
DestroyWindow (hGUIWnd);
CloseHandle (hGUIThread);
+
for (i = 0; i < nThreads; i++)
{
- ResumeThread (lpThreads[i]);
- WaitForSingleObject (lpThreads[i], 1);
CloseHandle (lpThreads[i]);
}
return 0;
@@ -280,13 +279,6 @@ void GUIMessageLoop ()
{
TranslateMessage (&msg);
DispatchMessage (&msg);
- if (msg.message == TM_YIELD)
- {
- SuspendThread (lpThreads[nPos]);
- if (++nPos >= nThreads)
- nPos = 0;
- ResumeThread (lpThreads[nPos]);
- }
}
}