21 Jun
2022
21 Jun
'22
3:01 a.m.
Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/d3dx10_43_main.c:
thread_pump_GetQueueStatus };
+static DWORD WINAPI io_thread(void *arg) +{ + struct thread_pump *thread_pump = arg; + struct work_item *work_item; + UINT zero = 0; + HRESULT hr; + + TRACE("%p thread started.\n", thread_pump); + + while (1) + { + RtlWaitOnAddress((void *)&thread_pump->io_count, &zero, sizeof(zero), NULL);
Nitpick, we prefer "for (;;)" for infinite loops. You can drop these casts in RtlWaitOnAddress() calls too, I think. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/272#note_2438