diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2012-03-06 10:15:46 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2012-03-06 10:15:46 +0000 |
commit | 3209a5fc38088077300a7048a8ad3679ca3d41b8 (patch) | |
tree | b80baa59ec06f35e932920fa5284c04cc37ab330 /yapp/message_pump.cpp | |
parent | fa3cdddd7fa6c0b50b117709da605a524e36117a (diff) |
Latest updates
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@598 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/message_pump.cpp')
-rw-r--r-- | yapp/message_pump.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/yapp/message_pump.cpp b/yapp/message_pump.cpp index 2ece03c..1d88388 100644 --- a/yapp/message_pump.cpp +++ b/yapp/message_pump.cpp @@ -4,7 +4,7 @@ #include "services.h"
#include "options.h"
-DWORD message_pump_thread_id = 0;
+unsigned message_pump_thread_id = 0;
int num_popups = 0;
HANDLE hMPEvent;
@@ -72,9 +72,7 @@ bool is_workstation_locked() }
-DWORD CALLBACK MessagePumpThread(LPVOID param) {
- CallService(MS_SYSTEM_THREAD_PUSH, 0, 0);
-
+unsigned __stdcall MessagePumpThread(void* param) {
InitWindowStack();
if(param) SetEvent((HANDLE)param);
@@ -154,8 +152,6 @@ DWORD CALLBACK MessagePumpThread(LPVOID param) { DeinitOptions();
DeinitServices();
- CallService(MS_SYSTEM_THREAD_POP, 0, 0);
-
return 0;
}
@@ -180,7 +176,7 @@ void InitMessagePump() { InitServices();
hMPEvent = CreateEvent(0, TRUE, 0, 0);
- CloseHandle(CreateThread(0, 0, MessagePumpThread, hMPEvent, 0, &message_pump_thread_id));
+ CloseHandle(mir_forkthreadex(MessagePumpThread, hMPEvent, 0, &message_pump_thread_id));
WaitForSingleObject(hMPEvent, INFINITE);
CloseHandle(hMPEvent);
}
|