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 #include "webrtc/system_wrappers/source/event_timer_posix.h" | 11 #include "webrtc/system_wrappers/source/event_timer_posix.h" |
12 | 12 |
13 #include <errno.h> | 13 #include <errno.h> |
14 #include <pthread.h> | 14 #include <pthread.h> |
15 #include <signal.h> | 15 #include <signal.h> |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include <string.h> | 17 #include <string.h> |
18 #include <sys/time.h> | 18 #include <sys/time.h> |
19 #include <unistd.h> | 19 #include <unistd.h> |
20 | 20 |
21 #include "webrtc/base/checks.h" | 21 #include "webrtc/rtc_base/checks.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // static | 25 // static |
26 EventTimerWrapper* EventTimerWrapper::Create() { | 26 EventTimerWrapper* EventTimerWrapper::Create() { |
27 return new EventTimerPosix(); | 27 return new EventTimerPosix(); |
28 } | 28 } |
29 | 29 |
30 const int64_t kNanosecondsPerMillisecond = 1000000; | 30 const int64_t kNanosecondsPerMillisecond = 1000000; |
31 const int64_t kNanosecondsPerSecond = 1000000000; | 31 const int64_t kNanosecondsPerSecond = 1000000000; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 252 } |
253 timer_event_.reset(); | 253 timer_event_.reset(); |
254 | 254 |
255 // Set time to zero to force new reference time for the timer. | 255 // Set time to zero to force new reference time for the timer. |
256 memset(&created_at_, 0, sizeof(created_at_)); | 256 memset(&created_at_, 0, sizeof(created_at_)); |
257 count_ = 0; | 257 count_ = 0; |
258 return true; | 258 return true; |
259 } | 259 } |
260 | 260 |
261 } // namespace webrtc | 261 } // namespace webrtc |
OLD | NEW |