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

Unified Diff: webrtc/base/timing.h

Issue 1623543002: Refactor RtpSender and SSRCDatabase a bit. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove thread checker due to voe::ChannelOwner Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/base/timing.h
diff --git a/webrtc/base/timing.h b/webrtc/base/timing.h
index 1dee607617e4ce0e7479c26561573e27b291d890..e709f883f3fe24646939c4c34d61fbebe24aa1d6 100644
--- a/webrtc/base/timing.h
+++ b/webrtc/base/timing.h
@@ -11,10 +11,6 @@
#ifndef WEBRTC_BASE_TIMING_H_
#define WEBRTC_BASE_TIMING_H_
-#if defined(WEBRTC_WIN)
-#include "webrtc/base/win32.h"
-#endif
-
namespace rtc {
class Timing {
@@ -33,26 +29,10 @@ class Timing {
// timing unit, they do not necessarily correlate because wall-clock
// time may be adjusted backwards, hence not monotonic.
// Made virtual so we can make a fake one.
+ // TODO(tommi): The only place we use this (virtual) is in
+ // rtpdata_engine_unittest.cc. See if it doesn't make more sense to change
+ // that contract or test than to modify this generic class.
virtual double TimerNow();
-
- // BusyWait() exhausts CPU as long as the time elapsed is less than
- // the specified interval in seconds. Returns the actual waiting
- // time based on TimerNow() measurement.
- double BusyWait(double period);
-
- // IdleWait() relinquishes control of CPU for specified period in
- // seconds. It uses highest resolution sleep mechanism as possible,
- // but does not otherwise guarantee the accuracy. Returns the
- // actual waiting time based on TimerNow() measurement.
- //
- // This function is not re-entrant for an object. Create a fresh
- // Timing object for each thread.
- double IdleWait(double period);
-
- private:
-#if defined(WEBRTC_WIN)
- HANDLE timer_handle_;
-#endif
};
} // namespace rtc

Powered by Google App Engine
This is Rietveld 408576698