Rename CriticalSection to RecursiveCriticalSection.
This name change communicates that the recursive critical section should not be used for new code. The relevant files are renamed rtc_base/critical_section* -> rtc_base/deprecated/recursive_critical_section* Bug: webrtc:11567 Change-Id: I73483a1c5e59c389407a981efbfc2cfe76ccdb43 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179483 Commit-Queue: Markus Handell <handellm@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31754}
This commit is contained in:
committed by
Commit Bot
parent
1a09faed62
commit
3cb525b378
@ -17,7 +17,7 @@
|
||||
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
#include "rtc_base/critical_section.h"
|
||||
#include "rtc_base/deprecated/recursive_critical_section.h"
|
||||
#include "rtc_base/event.h"
|
||||
#include "rtc_base/fake_clock.h"
|
||||
#include "rtc_base/message_handler.h"
|
||||
@ -295,7 +295,7 @@ class VirtualSocketServer : public SocketServer, public sigslot::has_slots<> {
|
||||
std::map<rtc::IPAddress, rtc::IPAddress> alternative_address_mapping_;
|
||||
std::unique_ptr<Function> delay_dist_;
|
||||
|
||||
CriticalSection delay_crit_;
|
||||
RecursiveCriticalSection delay_crit_;
|
||||
|
||||
double drop_prob_;
|
||||
bool sending_blocked_ = false;
|
||||
@ -380,7 +380,7 @@ class VirtualSocket : public AsyncSocket,
|
||||
bool ready_to_send_ = true;
|
||||
|
||||
// Critical section to protect the recv_buffer and queue_
|
||||
CriticalSection crit_;
|
||||
RecursiveCriticalSection crit_;
|
||||
|
||||
// Network model that enforces bandwidth and capacity constraints
|
||||
NetworkQueue network_;
|
||||
|
||||
Reference in New Issue
Block a user