dthread: use INFINITE enum for second argument to WaitForSingleObject
This commit is contained in:
parent
09e25b1e10
commit
f6e6b4b56f
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ unsigned int __stdcall dthread_handler(void *)
|
|||
DWORD dwMilliseconds;
|
||||
|
||||
while (dthread_running) {
|
||||
if (!sgpInfoHead && WaitForSingleObject(sghWorkToDoEvent, 0xFFFFFFFF) == -1) {
|
||||
if (!sgpInfoHead && WaitForSingleObject(sghWorkToDoEvent, INFINITE) == -1) {
|
||||
error_buf = TraceLastError();
|
||||
app_fatal("dthread4:\n%s", error_buf);
|
||||
}
|
||||
|
|
@ -140,7 +140,7 @@ void dthread_cleanup()
|
|||
dthread_running = FALSE;
|
||||
SetEvent(sghWorkToDoEvent);
|
||||
if (sghThread != INVALID_HANDLE_VALUE && glpDThreadId != GetCurrentThreadId()) {
|
||||
if (WaitForSingleObject(sghThread, 0xFFFFFFFF) == -1) {
|
||||
if (WaitForSingleObject(sghThread, INFINITE) == -1) {
|
||||
error_buf = TraceLastError();
|
||||
app_fatal("dthread3:\n(%s)", error_buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue