mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-31 09:25:42 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user