#include "rtc_base/deprecated/recursive_critical_section.h"
#include <time.h>
#include "rtc_base/checks.h"
#include "rtc_base/platform_thread_types.h"
#include "rtc_base/synchronization/yield.h"
#include "rtc_base/system/unused.h"
#if RTC_DCHECK_IS_ON
#define RTC_CS_DEBUG_CODE(x) …
#else
#define RTC_CS_DEBUG_CODE …
#endif
namespace rtc {
RecursiveCriticalSection::RecursiveCriticalSection() { … }
RecursiveCriticalSection::~RecursiveCriticalSection() { … }
void RecursiveCriticalSection::Enter() const RTC_EXCLUSIVE_LOCK_FUNCTION() { … }
bool RecursiveCriticalSection::TryEnter() const
RTC_EXCLUSIVE_TRYLOCK_FUNCTION(true) { … }
void RecursiveCriticalSection::Leave() const RTC_UNLOCK_FUNCTION() { … }
bool RecursiveCriticalSection::CurrentThreadIsOwner() const { … }
CritScope::CritScope(const RecursiveCriticalSection* cs) : … { … }
CritScope::~CritScope() { … }
}