// CancelSynchronousIo() didn't find anything to cancel, let's try
// with QueueUserAPC() instead.
if (err == ERROR_NOT_FOUND) {
- if (!QueueUserAPC(&dummy_cb, thread, NULL)) {
+ if (!QueueUserAPC(&dummy_cb, thread, 0)) {
fatal_error("QueueUserAPC() failed", GetLastError());
}
} else {
suscount = ResumeThread(th);
FACTOR_ASSERT(suscount == 1);
+
+ (void)suscount, (void)context_ok; // use all variables
+
return context.EIP;
}
cell pc = get_thread_pc(thread);
enqueue_samples(samples, pc, false);
}
+
+ (void)ok; // use all variables
+
}
static DWORD WINAPI sampler_thread_entry(LPVOID parent_vm) {
nursery(0, 0),
faulting_p(false),
thread(thread),
-#if defined(WINDOWS)
- thread_id(GetCurrentThreadId()),
- ctrl_break_thread(NULL),
-#endif
callback_id(0),
c_to_factor_func(NULL),
sampling_profiler_p(false),
last_nano_count(0),
signal_callstack_seg(NULL),
safepoint_fep_p(false),
- stop_on_ctrl_break(false) {
+ stop_on_ctrl_break(false)
+#if defined(WINDOWS)
+ ,
+ thread_id(GetCurrentThreadId()),
+ ctrl_break_thread(NULL)
+#endif
+{
primitive_reset_dispatch_stats();
}