Fix Windows setitimer() emulation to not depend on delivering an APC
Tom Lane <tgl@sss.pgh.pa.us>
Fix Windows setitimer() emulation to not depend on delivering an APC to the main thread. This allows removal of WaitForSingleObjectEx() calls from the main thread, thereby allowing us to re-enable Qingqing Zhou's CHECK_FOR_INTERRUPTS performance improvement. Qingqing, Magnus, et al.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/port/win32/signal.c | modified | +1 −11 |
| src/backend/port/win32/socket.c | modified | +2 −2 |
| src/backend/port/win32/timer.c | modified | +80 −33 |
| src/include/miscadmin.h | modified | +3 −2 |
| src/include/port/win32.h | modified | +1 −2 |