Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: runtime/bin/eventhandler_fuchsia.h

Issue 2168193002: Fuchsia: Build standalone VM. Make it run "Hello, World!". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_fuchsia.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef BIN_EVENTHANDLER_FUCHSIA_H_
6 #define BIN_EVENTHANDLER_FUCHSIA_H_
7
8 #if !defined(BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_fuchsia.h directly; use eventhandler.h instea d.
10 #endif
11
12 #include <magenta/syscalls.h>
13
14 namespace dart {
15 namespace bin {
16
17 class EventHandlerImplementation {
18 public:
19 EventHandlerImplementation();
20 ~EventHandlerImplementation();
21
22 void SendData(intptr_t id, Dart_Port dart_port, int64_t data);
23 void Start(EventHandler* handler);
24 void Shutdown();
25
26 private:
27 int64_t GetTimeout() const;
28 void HandleEvents();
29 void HandleTimeout();
30 void WakeupHandler(intptr_t id, Dart_Port dart_port, int64_t data);
31 void HandleInterruptFd();
32 static void Poll(uword args);
33
34 TimeoutQueue timeout_queue_;
35 bool shutdown_;
36 mx_handle_t interrupt_handles_[2];
37
38 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation);
39 };
40
41 } // namespace bin
42 } // namespace dart
43
44 #endif // BIN_EVENTHANDLER_FUCHSIA_H_
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698