2010-11-30 03:44:50 +08:00
|
|
|
//= llvm/Support/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock =//
|
2010-11-30 02:16:10 +08:00
|
|
|
//
|
2009-06-17 04:19:28 +08:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2010-11-30 02:16:10 +08:00
|
|
|
//
|
2009-06-17 04:19:28 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the Unix specific (non-pthread) RWMutex class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//=== WARNING: Implementation here must contain only generic UNIX code that
|
|
|
|
//=== is guaranteed to work on *all* UNIX variants.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
using namespace sys;
|
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
RWMutexImpl::RWMutexImpl() { }
|
2009-06-17 04:19:28 +08:00
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
RWMutexImpl::~RWMutexImpl() { }
|
2009-06-17 04:19:28 +08:00
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
bool RWMutexImpl::reader_acquire() {
|
2009-06-17 04:19:28 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
bool RWMutexImpl::reader_release() {
|
2009-06-17 04:19:28 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
bool RWMutexImpl::writer_acquire() {
|
2009-06-17 04:19:28 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-19 02:26:15 +08:00
|
|
|
bool RWMutexImpl::writer_release() {
|
2009-06-17 04:19:28 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|