OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 BIN_EVENTHANDLER_MACOS_H_ | 5 #ifndef BIN_EVENTHANDLER_MACOS_H_ |
6 #define BIN_EVENTHANDLER_MACOS_H_ | 6 #define BIN_EVENTHANDLER_MACOS_H_ |
7 | 7 |
8 #if !defined(BIN_EVENTHANDLER_H_) | 8 #if !defined(BIN_EVENTHANDLER_H_) |
9 #error Do not include eventhandler_macos.h directly; use eventhandler.h instead. | 9 #error Do not include eventhandler_macos.h directly; use eventhandler.h instead. |
10 #endif | 10 #endif |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 protected: | 48 protected: |
49 bool tracked_by_kqueue_; | 49 bool tracked_by_kqueue_; |
50 }; | 50 }; |
51 | 51 |
52 | 52 |
53 class DescriptorInfoSingle | 53 class DescriptorInfoSingle |
54 : public DescriptorInfoSingleMixin<DescriptorInfo> { | 54 : public DescriptorInfoSingleMixin<DescriptorInfo> { |
55 public: | 55 public: |
56 explicit DescriptorInfoSingle(intptr_t fd) | 56 explicit DescriptorInfoSingle(intptr_t fd) |
57 : DescriptorInfoSingleMixin(fd) {} | 57 : DescriptorInfoSingleMixin(fd, false) {} |
58 virtual ~DescriptorInfoSingle() {} | 58 virtual ~DescriptorInfoSingle() {} |
59 }; | 59 }; |
60 | 60 |
61 | 61 |
62 class DescriptorInfoMultiple | 62 class DescriptorInfoMultiple |
63 : public DescriptorInfoMultipleMixin<DescriptorInfo> { | 63 : public DescriptorInfoMultipleMixin<DescriptorInfo> { |
64 public: | 64 public: |
65 explicit DescriptorInfoMultiple(intptr_t fd) | 65 explicit DescriptorInfoMultiple(intptr_t fd) |
66 : DescriptorInfoMultipleMixin(fd) {} | 66 : DescriptorInfoMultipleMixin(fd, false) {} |
67 virtual ~DescriptorInfoMultiple() {} | 67 virtual ~DescriptorInfoMultiple() {} |
68 }; | 68 }; |
69 | 69 |
70 | 70 |
71 class EventHandlerImplementation { | 71 class EventHandlerImplementation { |
72 public: | 72 public: |
73 EventHandlerImplementation(); | 73 EventHandlerImplementation(); |
74 ~EventHandlerImplementation(); | 74 ~EventHandlerImplementation(); |
75 | 75 |
76 void UpdateKQueueInstance(intptr_t old_mask, DescriptorInfo *di); | 76 void UpdateKQueueInstance(intptr_t old_mask, DescriptorInfo *di); |
(...skipping 21 matching lines...) Expand all Loading... |
98 TimeoutQueue timeout_queue_; | 98 TimeoutQueue timeout_queue_; |
99 bool shutdown_; | 99 bool shutdown_; |
100 int interrupt_fds_[2]; | 100 int interrupt_fds_[2]; |
101 int kqueue_fd_; | 101 int kqueue_fd_; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace bin | 104 } // namespace bin |
105 } // namespace dart | 105 } // namespace dart |
106 | 106 |
107 #endif // BIN_EVENTHANDLER_MACOS_H_ | 107 #endif // BIN_EVENTHANDLER_MACOS_H_ |
OLD | NEW |