Flutter Engine
The Flutter Engine
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
15namespace fml {
16
18 private:
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_
Definition: ascii_trie.cc:9