Replace voice engine utility functions with system wrapper variants.
SLEEP -> SleepMs GET_TIME_IN_MS -> TickTime::MillisecondTimestamp These could cause unused function errors on some compilers. BUG=1228 Review URL: https://webrtc-codereview.appspot.com/1013004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3326 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -8,8 +8,9 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "critical_section_wrapper.h"
|
||||
#include "monitor_module.h"
|
||||
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
|
||||
#include "webrtc/system_wrappers/interface/tick_util.h"
|
||||
#include "webrtc/voice_engine/monitor_module.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -18,7 +19,7 @@ namespace voe {
|
||||
MonitorModule::MonitorModule() :
|
||||
_observerPtr(NULL),
|
||||
_callbackCritSect(*CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_lastProcessTime(GET_TIME_IN_MS())
|
||||
_lastProcessTime(TickTime::MillisecondTimestamp())
|
||||
{
|
||||
}
|
||||
|
||||
@ -68,7 +69,7 @@ MonitorModule::ChangeUniqueId(const WebRtc_Word32 id)
|
||||
WebRtc_Word32
|
||||
MonitorModule::TimeUntilNextProcess()
|
||||
{
|
||||
WebRtc_UWord32 now = GET_TIME_IN_MS();
|
||||
WebRtc_UWord32 now = TickTime::MillisecondTimestamp();
|
||||
WebRtc_Word32 timeToNext =
|
||||
kAverageProcessUpdateTimeMs - (now - _lastProcessTime);
|
||||
return (timeToNext);
|
||||
@ -77,7 +78,7 @@ MonitorModule::TimeUntilNextProcess()
|
||||
WebRtc_Word32
|
||||
MonitorModule::Process()
|
||||
{
|
||||
_lastProcessTime = GET_TIME_IN_MS();
|
||||
_lastProcessTime = TickTime::MillisecondTimestamp();
|
||||
if (_observerPtr)
|
||||
{
|
||||
CriticalSectionScoped lock(&_callbackCritSect);
|
||||
|
||||
Reference in New Issue
Block a user