| 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/interface/event_wrapper.h" | 14 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 15 | 15 |
| 16 #include <pthread.h> | 16 #include <pthread.h> |
| 17 #include <time.h> | 17 #include <time.h> |
| 18 | 18 |
| 19 #include "webrtc/system_wrappers/interface/thread_wrapper.h" | 19 #include "webrtc/system_wrappers/include/thread_wrapper.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 enum State { | 23 enum State { |
| 24 kUp = 1, | 24 kUp = 1, |
| 25 kDown = 2 | 25 kDown = 2 |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 class EventTimerPosix : public EventTimerWrapper { | 28 class EventTimerPosix : public EventTimerWrapper { |
| 29 public: | 29 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 51 timespec created_at_; | 51 timespec created_at_; |
| 52 | 52 |
| 53 bool periodic_; | 53 bool periodic_; |
| 54 unsigned long time_; // In ms | 54 unsigned long time_; // In ms |
| 55 unsigned long count_; | 55 unsigned long count_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace webrtc | 58 } // namespace webrtc |
| 59 | 59 |
| 60 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ | 60 #endif // WEBRTC_SYSTEM_WRAPPERS_SOURCE_EVENT_POSIX_H_ |
| OLD | NEW |