LLVM API Documentation

Unix/RWMutex.inc

Go to the documentation of this file.
00001 //= llvm/System/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock  =//
00002 // 
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 // 
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements the Unix specific (non-pthread) RWMutex class.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 //===----------------------------------------------------------------------===//
00015 //=== WARNING: Implementation here must contain only generic UNIX code that
00016 //===          is guaranteed to work on *all* UNIX variants.
00017 //===----------------------------------------------------------------------===//
00018 
00019 namespace llvm {
00020 
00021 using namespace sys;
00022 
00023 RWMutexImpl::RWMutexImpl() { }
00024 
00025 RWMutexImpl::~RWMutexImpl() { }
00026 
00027 bool RWMutexImpl::reader_acquire() {
00028   return true;
00029 }
00030 
00031 bool RWMutexImpl::reader_release() {
00032   return true;
00033 }
00034 
00035 bool RWMutexImpl::writer_acquire() {
00036   return true;
00037 }
00038 
00039 bool RWMutexImpl::writer_release() {
00040   return true;
00041 }
00042 
00043 }