Flutter Engine
flutter::HeadlessEventLoop Class Reference

#include <headless_event_loop.h>

Inheritance diagram for flutter::HeadlessEventLoop:
flutter::EventLoop

Public Types

using TaskExpiredCallback = std::function< void(const FlutterTask *)>
 
- Public Types inherited from flutter::EventLoop
using TaskExpiredCallback = std::function< void(const FlutterTask *)>
 

Public Member Functions

 HeadlessEventLoop (std::thread::id main_thread_id, const TaskExpiredCallback &on_task_expired)
 
 ~HeadlessEventLoop ()
 
 HeadlessEventLoop (const HeadlessEventLoop &)=delete
 
HeadlessEventLoopoperator= (const HeadlessEventLoop &)=delete
 
- Public Member Functions inherited from flutter::EventLoop
 EventLoop (std::thread::id main_thread_id, const TaskExpiredCallback &on_task_expired)
 
virtual ~EventLoop ()
 
 EventLoop (const EventLoop &)=delete
 
EventLoopoperator= (const EventLoop &)=delete
 
bool RunsTasksOnCurrentThread () const
 
void WaitForEvents (std::chrono::nanoseconds max_wait=std::chrono::nanoseconds::max())
 
void PostTask (FlutterTask flutter_task, uint64_t flutter_target_time_nanos)
 

Additional Inherited Members

- Protected Types inherited from flutter::EventLoop
using TaskTimePoint = std::chrono::steady_clock::time_point
 
- Protected Member Functions inherited from flutter::EventLoop
std::mutex & GetTaskQueueMutex ()
 
- Static Protected Member Functions inherited from flutter::EventLoop
static TaskTimePoint TimePointFromFlutterTime (uint64_t flutter_target_time_nanos)
 
- Protected Attributes inherited from flutter::EventLoop
std::thread::id main_thread_id_
 
TaskExpiredCallback on_task_expired_
 
std::mutex task_queue_mutex_
 
std::priority_queue< Task, std::deque< Task >, Task::Comparertask_queue_
 

Detailed Description

Definition at line 16 of file headless_event_loop.h.

Member Typedef Documentation

◆ TaskExpiredCallback

Constructor & Destructor Documentation

◆ HeadlessEventLoop() [1/2]

flutter::HeadlessEventLoop::HeadlessEventLoop ( std::thread::id  main_thread_id,
const TaskExpiredCallback on_task_expired 
)

Definition at line 12 of file headless_event_loop.cc.

References flutter::EventLoop::GetTaskQueueMutex(), and ~HeadlessEventLoop().

14  : EventLoop(main_thread_id, std::move(on_task_expired)) {}
EventLoop(std::thread::id main_thread_id, const TaskExpiredCallback &on_task_expired)
Definition: event_loop.cc:12

◆ ~HeadlessEventLoop()

flutter::HeadlessEventLoop::~HeadlessEventLoop ( )
default

Referenced by HeadlessEventLoop().

◆ HeadlessEventLoop() [2/2]

flutter::HeadlessEventLoop::HeadlessEventLoop ( const HeadlessEventLoop )
delete

Member Function Documentation

◆ operator=()

HeadlessEventLoop& flutter::HeadlessEventLoop::operator= ( const HeadlessEventLoop )
delete

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