blob: 40e87ff13111c7df8e4183a5d8c153285f147fdf [file] [log] [blame]
Charles Davis54c9eb62010-11-29 19:44:50 +00001//= llvm/Support/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock =//
Michael J. Spencer447762d2010-11-29 18:16:10 +00002//
Owen Anderson324f94c2009-06-16 20:19:28 +00003// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Michael J. Spencer447762d2010-11-29 18:16:10 +00007//
Owen Anderson324f94c2009-06-16 20:19:28 +00008//===----------------------------------------------------------------------===//
9//
10// This file implements the Unix specific (non-pthread) RWMutex class.
11//
12//===----------------------------------------------------------------------===//
13
14//===----------------------------------------------------------------------===//
15//=== WARNING: Implementation here must contain only generic UNIX code that
16//=== is guaranteed to work on *all* UNIX variants.
17//===----------------------------------------------------------------------===//
18
19namespace llvm {
20
21using namespace sys;
22
Owen Anderson1498a7a2009-06-18 18:26:15 +000023RWMutexImpl::RWMutexImpl() { }
Owen Anderson324f94c2009-06-16 20:19:28 +000024
Owen Anderson1498a7a2009-06-18 18:26:15 +000025RWMutexImpl::~RWMutexImpl() { }
Owen Anderson324f94c2009-06-16 20:19:28 +000026
Owen Anderson1498a7a2009-06-18 18:26:15 +000027bool RWMutexImpl::reader_acquire() {
Owen Anderson324f94c2009-06-16 20:19:28 +000028 return true;
29}
30
Owen Anderson1498a7a2009-06-18 18:26:15 +000031bool RWMutexImpl::reader_release() {
Owen Anderson324f94c2009-06-16 20:19:28 +000032 return true;
33}
34
Owen Anderson1498a7a2009-06-18 18:26:15 +000035bool RWMutexImpl::writer_acquire() {
Owen Anderson324f94c2009-06-16 20:19:28 +000036 return true;
37}
38
Owen Anderson1498a7a2009-06-18 18:26:15 +000039bool RWMutexImpl::writer_release() {
Owen Anderson324f94c2009-06-16 20:19:28 +000040 return true;
41}
42
43}