11 handle_ = CreateEvent(NULL, TRUE, FALSE, NULL);
13 RegisterWaitForSingleObject(&handle_for_wait_, handle_, &CallbackForWait,
14 reinterpret_cast<void*
>(
this), INFINITE,
15 WT_EXECUTEONLYONCE | WT_EXECUTEINWAITTHREAD);
19 UnregisterWait(handle_for_wait_);
28 VOID CALLBACK EventWatcher::CallbackForWait(PVOID context, BOOLEAN) {
30 ResetEvent(self->handle_);