chromium/third_party/webrtc/rtc_base/deprecated/recursive_critical_section.cc

/*
 *  Copyright 2015 The WebRTC Project Authors. All rights reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#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  // !RTC_DCHECK_IS_ON
#define RTC_CS_DEBUG_CODE
#endif  // !RTC_DCHECK_IS_ON

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() {}

}  // namespace rtc