OSDN Git Service
(root)
/
yamy
/
yamy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8624e9
)
fix double CloseHandle problem for m_threadHandle and m_readEvent
author
U-i7\gimy
<gimy@users.sourceforge.jp>
Sat, 12 Sep 2009 13:35:15 +0000
(22:35 +0900)
committer
U-i7\gimy
<gimy@users.sourceforge.jp>
Sat, 12 Sep 2009 13:35:15 +0000
(22:35 +0900)
reduce timeout value to wait m_threadHandle
engine.cpp
patch
|
blob
|
history
diff --git
a/engine.cpp
b/engine.cpp
index
6482510
..
d939cad
100644
(file)
--- a/
engine.cpp
+++ b/
engine.cpp
@@
-1269,7
+1269,7
@@
void Engine::stop() {
SetEvent(m_readEvent);
\r
ReleaseMutex(m_queueMutex);
\r
\r
- WaitForSingleObject(m_threadHandle, 2000
0
);
\r
+ WaitForSingleObject(m_threadHandle, 2000);
\r
CHECK_TRUE( CloseHandle(m_threadHandle) );
\r
m_threadHandle = NULL;
\r
\r
@@
-1289,7
+1289,6
@@
bool Engine::prepairQuit() {
\r
\r
Engine::~Engine() {
\r
- stop();
\r
CHECK_TRUE( CloseHandle(m_eSync) );
\r
\r
// destroy named pipe for &SetImeString
\r