Skip to content

Commit

Permalink
Pass event handle to WaitForSingleObject() by value
Browse files Browse the repository at this point in the history
  • Loading branch information
bqqbarbhg committed Jul 19, 2020
1 parent 793a8f8 commit 12445df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sokol_fetch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ _SOKOL_PRIVATE uint32_t _sfetch_thread_dequeue_incoming(_sfetch_thread_t* thread
EnterCriticalSection(&thread->incoming_critsec);
while (_sfetch_ring_empty(incoming) && !thread->stop_requested) {
LeaveCriticalSection(&thread->incoming_critsec);
WaitForSingleObject(&thread->incoming_event, INFINITE);
WaitForSingleObject(thread->incoming_event, INFINITE);
EnterCriticalSection(&thread->incoming_critsec);
}
uint32_t item = 0;
Expand Down

0 comments on commit 12445df

Please sign in to comment.