| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ | 5 #ifndef RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ |
| 6 #define RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ | 6 #define RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ |
| 7 | 7 |
| 8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_) | 8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_) |
| 9 #error Do not include eventhandler_fuchsia.h directly; use eventhandler.h. | 9 #error Do not include eventhandler_fuchsia.h directly; use eventhandler.h. |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <errno.h> | 12 #include <errno.h> |
| 13 #include <magenta/status.h> | 13 #include <magenta/status.h> |
| 14 #include <magenta/syscalls.h> | 14 #include <magenta/syscalls.h> |
| 15 #include <magenta/syscalls/object.h> | 15 #include <magenta/syscalls/object.h> |
| 16 #include <magenta/syscalls/port.h> | 16 #include <magenta/syscalls/port.h> |
| 17 #include <mxio/private.h> | 17 #include <mxio/private.h> |
| 18 #include <sys/epoll.h> | |
| 19 #include <sys/socket.h> | 18 #include <sys/socket.h> |
| 20 #include <unistd.h> | 19 #include <unistd.h> |
| 21 | 20 |
| 22 #include "bin/reference_counting.h" | 21 #include "bin/reference_counting.h" |
| 23 #include "bin/thread.h" | 22 #include "bin/thread.h" |
| 24 #include "platform/signal_blocker.h" | 23 #include "platform/signal_blocker.h" |
| 25 | 24 |
| 26 namespace dart { | 25 namespace dart { |
| 27 namespace bin { | 26 namespace bin { |
| 28 | 27 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 bool shutdown_; | 163 bool shutdown_; |
| 165 mx_handle_t port_handle_; | 164 mx_handle_t port_handle_; |
| 166 | 165 |
| 167 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation); | 166 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation); |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace bin | 169 } // namespace bin |
| 171 } // namespace dart | 170 } // namespace dart |
| 172 | 171 |
| 173 #endif // RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ | 172 #endif // RUNTIME_BIN_EVENTHANDLER_FUCHSIA_H_ |
| OLD | NEW |