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

Side by Side Diff: dart/runtime/bin/eventhandler_android.h

Issue 910863003: Implement windows support for having multiple Dart_Port's registered on one OS socket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable token counting on windows Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
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_ANDROID_H_ 5 #ifndef BIN_EVENTHANDLER_ANDROID_H_
6 #define BIN_EVENTHANDLER_ANDROID_H_ 6 #define BIN_EVENTHANDLER_ANDROID_H_
7 7
8 #if !defined(BIN_EVENTHANDLER_H_) 8 #if !defined(BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_android.h directly; 9 #error Do not include eventhandler_android.h directly;
10 #error use eventhandler.h instead. 10 #error use eventhandler.h instead.
(...skipping 23 matching lines...) Expand all
34 VOID_TEMP_FAILURE_RETRY(close(fd_)); 34 VOID_TEMP_FAILURE_RETRY(close(fd_));
35 fd_ = -1; 35 fd_ = -1;
36 } 36 }
37 }; 37 };
38 38
39 39
40 class DescriptorInfoSingle 40 class DescriptorInfoSingle
41 : public DescriptorInfoSingleMixin<DescriptorInfo> { 41 : public DescriptorInfoSingleMixin<DescriptorInfo> {
42 public: 42 public:
43 explicit DescriptorInfoSingle(intptr_t fd) 43 explicit DescriptorInfoSingle(intptr_t fd)
44 : DescriptorInfoSingleMixin(fd) {} 44 : DescriptorInfoSingleMixin(fd, false) {}
45 virtual ~DescriptorInfoSingle() {} 45 virtual ~DescriptorInfoSingle() {}
46 }; 46 };
47 47
48 48
49 class DescriptorInfoMultiple 49 class DescriptorInfoMultiple
50 : public DescriptorInfoMultipleMixin<DescriptorInfo> { 50 : public DescriptorInfoMultipleMixin<DescriptorInfo> {
51 public: 51 public:
52 explicit DescriptorInfoMultiple(intptr_t fd) 52 explicit DescriptorInfoMultiple(intptr_t fd)
53 : DescriptorInfoMultipleMixin(fd) {} 53 : DescriptorInfoMultipleMixin(fd, false) {}
54 virtual ~DescriptorInfoMultiple() {} 54 virtual ~DescriptorInfoMultiple() {}
55 }; 55 };
56 56
57 57
58 class EventHandlerImplementation { 58 class EventHandlerImplementation {
59 public: 59 public:
60 EventHandlerImplementation(); 60 EventHandlerImplementation();
61 ~EventHandlerImplementation(); 61 ~EventHandlerImplementation();
62 62
63 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo *di); 63 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo *di);
(...skipping 21 matching lines...) Expand all
85 TimeoutQueue timeout_queue_; 85 TimeoutQueue timeout_queue_;
86 bool shutdown_; 86 bool shutdown_;
87 int interrupt_fds_[2]; 87 int interrupt_fds_[2];
88 int epoll_fd_; 88 int epoll_fd_;
89 }; 89 };
90 90
91 } // namespace bin 91 } // namespace bin
92 } // namespace dart 92 } // namespace dart
93 93
94 #endif // BIN_EVENTHANDLER_ANDROID_H_ 94 #endif // BIN_EVENTHANDLER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698