[llvm-commits] CVS: llvm/lib/System/Mutex.cpp

Jeff Cohen jeffc at jolt-lang.org
Tue Jul 12 19:15:30 PDT 2005



Changes in directory llvm/lib/System:

Mutex.cpp updated: 1.1 -> 1.2
---
Log message:

Win32 support for Mutex class.

---
Diffs of the changes:  (+5 -3)

 Mutex.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/lib/System/Mutex.cpp
diff -u llvm/lib/System/Mutex.cpp:1.1 llvm/lib/System/Mutex.cpp:1.2
--- llvm/lib/System/Mutex.cpp:1.1	Tue Jul 12 10:37:43 2005
+++ llvm/lib/System/Mutex.cpp	Tue Jul 12 21:15:17 2005
@@ -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 @@
 }
 
 }
+
 #elif defined(LLVM_ON_UNIX)
 #include "Unix/Mutex.inc"
 #elif defined( LLVM_ON_WIN32)






More information about the llvm-commits mailing list