Reland "Migrate test/time_controller to webrtc::Mutex."
This is a reland of 52fd96fb731d9a911bd064a9718d96fef0bd5b24 Original change's description: > Migrate test/time_controller to webrtc::Mutex. > > Bug: webrtc:11567 > Change-Id: I26fb07bf84ed197ce667290aa0bf4816bc9c5c06 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178818 > Reviewed-by: Sebastian Jansson <srte@webrtc.org> > Commit-Queue: Markus Handell <handellm@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31660} Bug: webrtc:11567 Change-Id: I4979b6be8ac5ec661e0f18cca4d0c185916233bb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178876 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31687}
This commit is contained in:
committed by
Commit Bot
parent
517f81e0a4
commit
e56976d2db
@ -21,9 +21,9 @@
|
||||
#include "api/units/timestamp.h"
|
||||
#include "modules/include/module.h"
|
||||
#include "modules/utility/include/process_thread.h"
|
||||
#include "rtc_base/critical_section.h"
|
||||
#include "rtc_base/fake_clock.h"
|
||||
#include "rtc_base/platform_thread_types.h"
|
||||
#include "rtc_base/synchronization/mutex.h"
|
||||
#include "rtc_base/synchronization/yield_policy.h"
|
||||
#include "rtc_base/thread_checker.h"
|
||||
|
||||
@ -89,9 +89,9 @@ class SimulatedTimeControllerImpl : public TaskQueueFactory,
|
||||
private:
|
||||
const rtc::PlatformThreadId thread_id_;
|
||||
const std::unique_ptr<rtc::Thread> dummy_thread_ = rtc::Thread::Create();
|
||||
rtc::CriticalSection time_lock_;
|
||||
mutable Mutex time_lock_;
|
||||
Timestamp current_time_ RTC_GUARDED_BY(time_lock_);
|
||||
rtc::CriticalSection lock_;
|
||||
mutable Mutex lock_;
|
||||
std::vector<SimulatedSequenceRunner*> runners_ RTC_GUARDED_BY(lock_);
|
||||
// Used in RunReadyRunners() to keep track of ready runners that are to be
|
||||
// processed in a round robin fashion. the reason it's a member is so that
|
||||
|
||||
Reference in New Issue
Block a user