| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ |
| 12 #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ |
| 13 | 13 |
| 14 #include "webrtc/system_wrappers/include/event_wrapper.h" | 14 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 15 | 15 |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 #include <pthread.h> | 18 #include <pthread.h> |
| 19 #include <time.h> | 19 #include <time.h> |
| 20 | 20 |
| 21 #include "webrtc/rtc_base/platform_thread.h" | 21 #include "webrtc/base/platform_thread.h" |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 | 24 |
| 25 enum State { | 25 enum State { |
| 26 kUp = 1, | 26 kUp = 1, |
| 27 kDown = 2 | 27 kDown = 2 |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 class EventTimerPosix : public EventTimerWrapper { | 30 class EventTimerPosix : public EventTimerWrapper { |
| 31 public: | 31 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 58 | 58 |
| 59 bool periodic_; | 59 bool periodic_; |
| 60 unsigned long time_ms_; | 60 unsigned long time_ms_; |
| 61 unsigned long count_; | 61 unsigned long count_; |
| 62 bool is_stopping_; | 62 bool is_stopping_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace webrtc | 65 } // namespace webrtc |
| 66 | 66 |
| 67 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ | 67 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ |
| OLD | NEW |