2010-11-29 19:44:50 +00:00
|
|
|
//= llvm/Support/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock =//
|
2010-11-29 18:16:10 +00:00
|
|
|
//
|
2009-06-16 20:19:28 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2010-11-29 18:16:10 +00:00
|
|
|
//
|
2009-06-16 20:19:28 +00: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-18 18:26:15 +00:00
|
|
|
RWMutexImpl::RWMutexImpl() { }
|
2009-06-16 20:19:28 +00:00
|
|
|
|
2009-06-18 18:26:15 +00:00
|
|
|
RWMutexImpl::~RWMutexImpl() { }
|
2009-06-16 20:19:28 +00:00
|
|
|
|
2009-06-18 18:26:15 +00:00
|
|
|
bool RWMutexImpl::reader_acquire() {
|
2009-06-16 20:19:28 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-18 18:26:15 +00:00
|
|
|
bool RWMutexImpl::reader_release() {
|
2009-06-16 20:19:28 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-18 18:26:15 +00:00
|
|
|
bool RWMutexImpl::writer_acquire() {
|
2009-06-16 20:19:28 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-06-18 18:26:15 +00:00
|
|
|
bool RWMutexImpl::writer_release() {
|
2009-06-16 20:19:28 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|