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
@ -29,7 +29,7 @@
|
||||
#include "api/task_queue/queued_task.h"
|
||||
#include "api/task_queue/task_queue_base.h"
|
||||
#include "rtc_base/constructor_magic.h"
|
||||
#include "rtc_base/critical_section.h"
|
||||
#include "rtc_base/deprecated/recursive_critical_section.h"
|
||||
#include "rtc_base/location.h"
|
||||
#include "rtc_base/message_handler.h"
|
||||
#include "rtc_base/platform_thread_types.h"
|
||||
@ -140,7 +140,7 @@ class RTC_EXPORT ThreadManager {
|
||||
// Methods that don't modify the list of message queues may be called in a
|
||||
// re-entrant fashion. "processing_" keeps track of the depth of re-entrant
|
||||
// calls.
|
||||
CriticalSection crit_;
|
||||
RecursiveCriticalSection crit_;
|
||||
size_t processing_ RTC_GUARDED_BY(crit_) = 0;
|
||||
#if RTC_DCHECK_IS_ON
|
||||
// Represents all thread seand actions by storing all send targets per thread.
|
||||
@ -531,7 +531,7 @@ class RTC_LOCKABLE RTC_EXPORT Thread : public webrtc::TaskQueueBase {
|
||||
|
||||
friend class ScopedDisallowBlockingCalls;
|
||||
|
||||
CriticalSection* CritForTest() { return &crit_; }
|
||||
RecursiveCriticalSection* CritForTest() { return &crit_; }
|
||||
|
||||
private:
|
||||
class QueuedTaskHandler final : public MessageHandler {
|
||||
@ -582,7 +582,7 @@ class RTC_LOCKABLE RTC_EXPORT Thread : public webrtc::TaskQueueBase {
|
||||
std::vector<Thread*> allowed_threads_ RTC_GUARDED_BY(this);
|
||||
bool invoke_policy_enabled_ RTC_GUARDED_BY(this) = false;
|
||||
#endif
|
||||
CriticalSection crit_;
|
||||
RecursiveCriticalSection crit_;
|
||||
bool fInitialized_;
|
||||
bool fDestroyed_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user