Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
fml
platform
fuchsia
message_loop_fuchsia.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_FML_PLATFORM_FUCHSIA_MESSAGE_LOOP_FUCHSIA_H_
6
#define FLUTTER_FML_PLATFORM_FUCHSIA_MESSAGE_LOOP_FUCHSIA_H_
7
8
#include <lib/async-loop/cpp/loop.h>
9
#include <lib/async/cpp/wait.h>
10
#include <lib/zx/timer.h>
11
12
#include "flutter/fml/macros.h"
13
#include "flutter/fml/message_loop_impl.h"
14
15
namespace
fml
{
16
17
class
MessageLoopFuchsia
:
public
MessageLoopImpl
{
18
private
:
19
MessageLoopFuchsia
();
20
21
~MessageLoopFuchsia
()
override
;
22
23
void
Run
()
override
;
24
25
void
Terminate
()
override
;
26
27
void
WakeUp
(
fml::TimePoint
time_point)
override
;
28
29
async::Loop loop_;
30
std::unique_ptr<async::Wait> timer_wait_;
31
zx::timer timer_;
32
33
FML_FRIEND_MAKE_REF_COUNTED
(
MessageLoopFuchsia
);
34
FML_FRIEND_REF_COUNTED_THREAD_SAFE
(
MessageLoopFuchsia
);
35
FML_DISALLOW_COPY_AND_ASSIGN
(
MessageLoopFuchsia
);
36
};
37
38
}
// namespace fml
39
40
#endif
// FLUTTER_FML_PLATFORM_FUCHSIA_MESSAGE_LOOP_FUCHSIA_H_
fml::MessageLoopFuchsia
Definition
message_loop_fuchsia.h:17
fml::MessageLoopFuchsia::WakeUp
void WakeUp(fml::TimePoint time_point) override
Definition
message_loop_fuchsia.cc:103
fml::MessageLoopFuchsia::~MessageLoopFuchsia
~MessageLoopFuchsia() override
Definition
message_loop_fuchsia.cc:41
fml::MessageLoopFuchsia::Terminate
void Terminate() override
Definition
message_loop_fuchsia.cc:99
fml::MessageLoopFuchsia::Run
void Run() override
Definition
message_loop_fuchsia.cc:49
fml::MessageLoopImpl
Definition
message_loop_impl.h:32
fml::TimePoint
Definition
time_point.h:22
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
fml
Definition
ascii_trie.cc:9
FML_FRIEND_REF_COUNTED_THREAD_SAFE
#define FML_FRIEND_REF_COUNTED_THREAD_SAFE(T)
Definition
ref_counted.h:126
FML_FRIEND_MAKE_REF_COUNTED
#define FML_FRIEND_MAKE_REF_COUNTED(T)
Definition
ref_counted.h:132
Generated on Fri Apr 26 2024 06:14:06 for Flutter Engine by
1.9.8