2009-06-16 20:19:28 +00:00
|
|
|
//= llvm/System/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock =//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|