Flutter Engine
The Flutter Engine
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::MessageLoopImpl
Definition:
message_loop_impl.h:32
fml::TimePoint
Definition:
time_point.h:22
fml
Definition:
ascii_trie.cc:9
Generated on Sun Jun 23 2024 21:54:58 for Flutter Engine by
1.9.4