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

Side by Side Diff: dart/runtime/bin/eventhandler_linux.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_LINUX_H_ 5 #ifndef BIN_EVENTHANDLER_LINUX_H_
6 #define BIN_EVENTHANDLER_LINUX_H_ 6 #define BIN_EVENTHANDLER_LINUX_H_
7 7
8 #if !defined(BIN_EVENTHANDLER_H_) 8 #if !defined(BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_linux.h directly; use eventhandler.h instead. 9 #error Do not include eventhandler_linux.h directly; use eventhandler.h instead.
10 #endif 10 #endif
(...skipping 22 matching lines...) Expand all
33 VOID_TEMP_FAILURE_RETRY(close(fd_)); 33 VOID_TEMP_FAILURE_RETRY(close(fd_));
34 fd_ = -1; 34 fd_ = -1;
35 } 35 }
36 }; 36 };
37 37
38 38
39 class DescriptorInfoSingle 39 class DescriptorInfoSingle
40 : public DescriptorInfoSingleMixin<DescriptorInfo> { 40 : public DescriptorInfoSingleMixin<DescriptorInfo> {
41 public: 41 public:
42 explicit DescriptorInfoSingle(intptr_t fd) 42 explicit DescriptorInfoSingle(intptr_t fd)
43 : DescriptorInfoSingleMixin(fd) {} 43 : DescriptorInfoSingleMixin(fd, false) {}
44 virtual ~DescriptorInfoSingle() {} 44 virtual ~DescriptorInfoSingle() {}
45 }; 45 };
46 46
47 47
48 class DescriptorInfoMultiple 48 class DescriptorInfoMultiple
49 : public DescriptorInfoMultipleMixin<DescriptorInfo> { 49 : public DescriptorInfoMultipleMixin<DescriptorInfo> {
50 public: 50 public:
51 explicit DescriptorInfoMultiple(intptr_t fd) 51 explicit DescriptorInfoMultiple(intptr_t fd)
52 : DescriptorInfoMultipleMixin(fd) {} 52 : DescriptorInfoMultipleMixin(fd, false) {}
53 virtual ~DescriptorInfoMultiple() {} 53 virtual ~DescriptorInfoMultiple() {}
54 }; 54 };
55 55
56 56
57 class EventHandlerImplementation { 57 class EventHandlerImplementation {
58 public: 58 public:
59 EventHandlerImplementation(); 59 EventHandlerImplementation();
60 ~EventHandlerImplementation(); 60 ~EventHandlerImplementation();
61 61
62 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo *di); 62 void UpdateEpollInstance(intptr_t old_mask, DescriptorInfo *di);
(...skipping 20 matching lines...) Expand all
83 bool shutdown_; 83 bool shutdown_;
84 int interrupt_fds_[2]; 84 int interrupt_fds_[2];
85 int epoll_fd_; 85 int epoll_fd_;
86 int timer_fd_; 86 int timer_fd_;
87 }; 87 };
88 88
89 } // namespace bin 89 } // namespace bin
90 } // namespace dart 90 } // namespace dart
91 91
92 #endif // BIN_EVENTHANDLER_LINUX_H_ 92 #endif // BIN_EVENTHANDLER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698