diff options
| author | Kristof Beyls <kristof.beyls@arm.com> | 2017-03-31 14:26:44 +0000 |
|---|---|---|
| committer | Kristof Beyls <kristof.beyls@arm.com> | 2017-03-31 14:26:44 +0000 |
| commit | a11dbf2c90e0a4926e5ac3d0799be4603e15ae32 (patch) | |
| tree | 895d52180e1264a98b395b9dc1ee0e79b8554d49 /llvm/lib/Support/Windows/Mutex.inc | |
| parent | 1cdbfe44b12c54188dba1e989ac89411243d6074 (diff) | |
| download | bcm5719-llvm-a11dbf2c90e0a4926e5ac3d0799be4603e15ae32.tar.gz bcm5719-llvm-a11dbf2c90e0a4926e5ac3d0799be4603e15ae32.zip | |
Remove more name space pollution from .inc files
llvm-svn: 299222
Diffstat (limited to 'llvm/lib/Support/Windows/Mutex.inc')
| -rw-r--r-- | llvm/lib/Support/Windows/Mutex.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Support/Windows/Mutex.inc b/llvm/lib/Support/Windows/Mutex.inc index ab79d079122..0af145ec9a4 100644 --- a/llvm/lib/Support/Windows/Mutex.inc +++ b/llvm/lib/Support/Windows/Mutex.inc @@ -20,15 +20,14 @@ #include "llvm/Support/Mutex.h" namespace llvm { -using namespace sys; -MutexImpl::MutexImpl(bool /*recursive*/) +sys::MutexImpl::MutexImpl(bool /*recursive*/) { data_ = new CRITICAL_SECTION; InitializeCriticalSection((LPCRITICAL_SECTION)data_); } -MutexImpl::~MutexImpl() +sys::MutexImpl::~MutexImpl() { DeleteCriticalSection((LPCRITICAL_SECTION)data_); delete (LPCRITICAL_SECTION)data_; @@ -36,21 +35,21 @@ MutexImpl::~MutexImpl() } bool -MutexImpl::acquire() +sys::MutexImpl::acquire() { EnterCriticalSection((LPCRITICAL_SECTION)data_); return true; } bool -MutexImpl::release() +sys::MutexImpl::release() { LeaveCriticalSection((LPCRITICAL_SECTION)data_); return true; } bool -MutexImpl::tryacquire() +sys::MutexImpl::tryacquire() { return TryEnterCriticalSection((LPCRITICAL_SECTION)data_); } |

