From 68f6598c69a75d8833945070d180730154cd3b6d Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 18 Jun 2009 17:53:17 +0000 Subject: 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, to preserve source compatibility. llvm-svn: 73709 --- llvm/lib/System/Unix/Mutex.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/System/Unix/Mutex.inc') 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; } -- cgit v1.2.3