Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::EventWatcher Class Reference

#include <event_watcher.h>

Public Member Functions

 EventWatcher (std::function< void()> callback)
 
 ~EventWatcher ()
 
HANDLE GetHandle ()
 

Detailed Description

Definition at line 17 of file event_watcher.h.

Constructor & Destructor Documentation

◆ EventWatcher()

flutter::EventWatcher::EventWatcher ( std::function< void()>  callback)
explicit

Definition at line 9 of file event_watcher.cc.

10 : callback_(callback) {
11 handle_ = CreateEvent(NULL, TRUE, FALSE, NULL);
12
13 RegisterWaitForSingleObject(&handle_for_wait_, handle_, &CallbackForWait,
14 reinterpret_cast<void*>(this), INFINITE,
15 WT_EXECUTEONLYONCE | WT_EXECUTEINWAITTHREAD);
16}
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
return FALSE
#define CreateEvent

◆ ~EventWatcher()

flutter::EventWatcher::~EventWatcher ( )

Definition at line 18 of file event_watcher.cc.

18 {
19 UnregisterWait(handle_for_wait_);
20 CloseHandle(handle_);
21}

Member Function Documentation

◆ GetHandle()

HANDLE flutter::EventWatcher::GetHandle ( )

Definition at line 23 of file event_watcher.cc.

23 {
24 return handle_;
25}

The documentation for this class was generated from the following files: