chromium/third_party/libc++/src/src/shared_mutex.cpp

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include <mutex>
#include <shared_mutex>
#if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB)
#  pragma comment(lib, "pthread")
#endif

_LIBCPP_BEGIN_NAMESPACE_STD

// Shared Mutex Base
__shared_mutex_base::__shared_mutex_base() :{}

// Exclusive ownership

void __shared_mutex_base::lock() {}

bool __shared_mutex_base::try_lock() {}

void __shared_mutex_base::unlock() {}

// Shared ownership

void __shared_mutex_base::lock_shared() {}

bool __shared_mutex_base::try_lock_shared() {}

void __shared_mutex_base::unlock_shared() {}

// Shared Timed Mutex
// These routines are here for ABI stability
shared_timed_mutex::shared_timed_mutex() :{}
void shared_timed_mutex::lock() {}
bool shared_timed_mutex::try_lock() {}
void shared_timed_mutex::unlock() {}
void shared_timed_mutex::lock_shared() {}
bool shared_timed_mutex::try_lock_shared() {}
void shared_timed_mutex::unlock_shared() {}

_LIBCPP_END_NAMESPACE_STD