diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-13 02:15:18 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-13 02:15:18 +0000 |
commit | 6d2352249af8853c8307a7cf679017b32d27958c (patch) | |
tree | e3fcf758ddf54cbe8d1106dac4fefc811a57d006 /lib/System/Mutex.cpp | |
parent | c087a435109cdc943da094a21371f7d66d5b0e54 (diff) |
Win32 support for Mutex class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Mutex.cpp')
-rw-r--r-- | lib/System/Mutex.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp index 2a15197691..4ec5af302f 100644 --- a/lib/System/Mutex.cpp +++ b/lib/System/Mutex.cpp @@ -14,15 +14,16 @@ #include "llvm/System/Mutex.h" #include "llvm/Config/config.h" -namespace llvm { -using namespace sys; - //===----------------------------------------------------------------------===// //=== WARNING: Implementation here must contain only TRULY operating system //=== independent code. //===----------------------------------------------------------------------===// #if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_MUTEX_LOCK) + +namespace llvm { +using namespace sys; + #include <cassert> #include <pthread.h> #include <stdlib.h> @@ -132,6 +133,7 @@ Mutex::tryacquire() } } + #elif defined(LLVM_ON_UNIX) #include "Unix/Mutex.inc" #elif defined( LLVM_ON_WIN32) |