diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-18 17:53:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-18 17:53:17 +0000 |
commit | 68f6598c69a75d8833945070d180730154cd3b6d (patch) | |
tree | 73c1cc010d960c7398c5a18ce3034ece35419a31 /llvm/lib/System/Unix/Mutex.inc | |
parent | 81ef65d4914dbac70a0eeaf71462369d06d64647 (diff) | |
download | bcm5719-llvm-68f6598c69a75d8833945070d180730154cd3b6d.tar.gz bcm5719-llvm-68f6598c69a75d8833945070d180730154cd3b6d.zip |
Insert a SmartMutex templated class into the class hierarchy, which takes a template parameter specifying whether this mutex
should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility.
llvm-svn: 73709
Diffstat (limited to 'llvm/lib/System/Unix/Mutex.inc')
-rw-r--r-- | llvm/lib/System/Unix/Mutex.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/System/Unix/Mutex.inc b/llvm/lib/System/Unix/Mutex.inc index 4a015a676fc..10e7ecb75a5 100644 --- a/llvm/lib/System/Unix/Mutex.inc +++ b/llvm/lib/System/Unix/Mutex.inc @@ -20,28 +20,28 @@ namespace llvm { using namespace sys; -Mutex::Mutex( bool recursive) +MutexImpl::MutexImpl( bool recursive) { } -Mutex::~Mutex() +MutexImpl::~MutexImpl() { } bool -Mutex::acquire() +MutexImpl::MutexImpl() { return true; } bool -Mutex::release() +MutexImpl::release() { return true; } bool -Mutex::tryacquire( void ) +MutexImpl::tryacquire( void ) { return true; } |