[llvm-commits] CVS: llvm/include/llvm/System/Mutex.h

Reid Spencer reid at x10sys.com
Wed Aug 24 03:07:35 PDT 2005



Changes in directory llvm/include/llvm/System:

Mutex.h updated: 1.4 -> 1.5
---
Log message:

For PR616: http://llvm.cs.uiuc.edu/PR616 :
These patches make threading optional in LLVM. The configuration scripts are now
modified to accept a --disable-threads switch. If this is used, the Mutex class
will be implemented with all functions as no-op. Furthermore, linking against
libpthread will not be done. Finally, the ParallelJIT example needs libpthread
so its makefile was changed to always add -lpthread to the link line.


---
Diffs of the changes:  (+2 -0)

 Mutex.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/include/llvm/System/Mutex.h
diff -u llvm/include/llvm/System/Mutex.h:1.4 llvm/include/llvm/System/Mutex.h:1.5
--- llvm/include/llvm/System/Mutex.h:1.4	Wed Jul 27 00:53:43 2005
+++ llvm/include/llvm/System/Mutex.h	Wed Aug 24 05:07:21 2005
@@ -66,7 +66,9 @@
     /// @name Platform Dependent Data
     /// @{
     private:
+#ifdef ENABLE_THREADS
       void* data_; ///< We don't know what the data will be
+#endif
 
     /// @}
     /// @name Do Not Implement






More information about the llvm-commits mailing list