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 | 3800a28d46cbe98ffaf2302bc82f387740badd22 (patch) | |
tree | 981612a6a3688444b875be0cac4d011228ad88ff /llvm/lib/System/Mutex.cpp | |
parent | f9ddfef87246d4423f27eae5bc70a4669ecf9ee1 (diff) | |
download | bcm5719-llvm-3800a28d46cbe98ffaf2302bc82f387740badd22.tar.gz bcm5719-llvm-3800a28d46cbe98ffaf2302bc82f387740badd22.zip |
Win32 support for Mutex class.
llvm-svn: 22420
Diffstat (limited to 'llvm/lib/System/Mutex.cpp')
-rw-r--r-- | llvm/lib/System/Mutex.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp index 2a151976913..4ec5af302f9 100644 --- a/llvm/lib/System/Mutex.cpp +++ b/llvm/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) |