#include "base/synchronization/lock_impl.h"
#include <ostream>
#include <string>
#include "base/check_op.h"
#include "base/posix/safe_strerror.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/synchronization_buildflags.h"
#include "build/build_config.h"
namespace base {
namespace internal {
namespace {
#if DCHECK_IS_ON()
const char* AdditionalHintForSystemErrorCode(int error_code) { … }
#endif
std::string SystemErrorCodeToString(int error_code) { … }
}
#if DCHECK_IS_ON()
void dcheck_trylock_result(int rv) { … }
void dcheck_unlock_result(int rv) { … }
#endif
#if BUILDFLAG(IS_NACL) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
#define PRIORITY_INHERITANCE_LOCKS_POSSIBLE …
#else
#define PRIORITY_INHERITANCE_LOCKS_POSSIBLE() …
#endif
LockImpl::LockImpl() { … }
LockImpl::~LockImpl() { … }
void LockImpl::LockInternal() { … }
bool LockImpl::PriorityInheritanceAvailable() { … }
}
}