| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
| 6 #define NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 6 #define NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <sys/queue.h> | 10 #include <sys/queue.h> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // as well as providing a per-fd-registered summary of | 24 // as well as providing a per-fd-registered summary of |
| 25 // events. Note that enabling this code vastly slows | 25 // events. Note that enabling this code vastly slows |
| 26 // down operations, and uses substantially more | 26 // down operations, and uses substantially more |
| 27 // memory. For these reasons, it should only be enabled when doing | 27 // memory. For these reasons, it should only be enabled when doing |
| 28 // developer debugging at his/her workstation. | 28 // developer debugging at his/her workstation. |
| 29 // | 29 // |
| 30 // A structure called 'EventRecorder' will exist when | 30 // A structure called 'EventRecorder' will exist when |
| 31 // the macro is defined. See the EventRecorder class interface | 31 // the macro is defined. See the EventRecorder class interface |
| 32 // within the EpollServer class for more details. | 32 // within the EpollServer class for more details. |
| 33 #ifdef EPOLL_SERVER_EVENT_TRACING | 33 #ifdef EPOLL_SERVER_EVENT_TRACING |
| 34 #include <iostream> | 34 #include <ostream> |
| 35 #include "base/logging.h" | 35 #include "base/logging.h" |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #include "base/basictypes.h" | 38 #include "base/basictypes.h" |
| 39 #include "base/memory/scoped_ptr.h" | 39 #include "base/memory/scoped_ptr.h" |
| 40 #include <sys/epoll.h> | 40 #include <sys/epoll.h> |
| 41 | 41 |
| 42 namespace net { | 42 namespace net { |
| 43 | 43 |
| 44 class EpollServer; | 44 class EpollServer; |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 private: | 1055 private: |
| 1056 EpollServer::AlarmRegToken token_; | 1056 EpollServer::AlarmRegToken token_; |
| 1057 EpollServer* eps_; | 1057 EpollServer* eps_; |
| 1058 bool registered_; | 1058 bool registered_; |
| 1059 }; | 1059 }; |
| 1060 | 1060 |
| 1061 } // namespace net | 1061 } // namespace net |
| 1062 | 1062 |
| 1063 #endif // NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ | 1063 #endif // NET_TOOLS_FLIP_SERVER_EPOLL_SERVER_H_ |
| 1064 | 1064 |
| OLD | NEW |