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
@ -21,7 +21,7 @@
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
#include "rtc_base/critical_section.h"
|
||||
#include "rtc_base/deprecated/recursive_critical_section.h"
|
||||
#include "rtc_base/net_helpers.h"
|
||||
#include "rtc_base/socket_server.h"
|
||||
#include "rtc_base/system/rtc_export.h"
|
||||
@ -111,7 +111,7 @@ class RTC_EXPORT PhysicalSocketServer : public SocketServer {
|
||||
DispatcherSet pending_remove_dispatchers_ RTC_GUARDED_BY(crit_);
|
||||
bool processing_dispatchers_ RTC_GUARDED_BY(crit_) = false;
|
||||
Signaler* signal_wakeup_; // Assigned in constructor only
|
||||
CriticalSection crit_;
|
||||
RecursiveCriticalSection crit_;
|
||||
#if defined(WEBRTC_WIN)
|
||||
const WSAEVENT socket_ev_;
|
||||
#endif
|
||||
@ -191,7 +191,7 @@ class PhysicalSocket : public AsyncSocket, public sigslot::has_slots<> {
|
||||
SOCKET s_;
|
||||
bool udp_;
|
||||
int family_ = 0;
|
||||
CriticalSection crit_;
|
||||
RecursiveCriticalSection crit_;
|
||||
int error_ RTC_GUARDED_BY(crit_);
|
||||
ConnState state_;
|
||||
AsyncResolver* resolver_;
|
||||
|
||||
Reference in New Issue
Block a user