[llvm-commits] CVS: llvm/include/Support/ThreadSupport.h
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Feb 6 16:34:03 PST 2004
Changes in directory llvm/include/Support:
ThreadSupport.h updated: 1.2 -> 1.3
---
Log message:
Use autoconf answers from config.h (FIXME, should autoconf this file
directly instead).
Fix LockHolder/MutexLocker typo.
---
Diffs of the changes: (+5 -4)
Index: llvm/include/Support/ThreadSupport.h
diff -u llvm/include/Support/ThreadSupport.h:1.2 llvm/include/Support/ThreadSupport.h:1.3
--- llvm/include/Support/ThreadSupport.h:1.2 Sat Jan 17 16:48:06 2004
+++ llvm/include/Support/ThreadSupport.h Fri Feb 6 16:33:17 2004
@@ -17,8 +17,9 @@
#ifndef SUPPORT_THREADSUPPORT_H
#define SUPPORT_THREADSUPPORT_H
-// FIXME: We need autoconf support to detect pthreads!
-#if 0
+// FIXME: Eventually don't #include config.h here
+#include "Config/config.h"
+#if defined(HAVE_PTHREAD_MUTEX_LOCK) && HAVE_PTHREAD_MUTEX_LOCK
#include "Support/ThreadSupport-PThreads.h"
#else
#include "Support/ThreadSupport-NoSupport.h"
@@ -30,8 +31,8 @@
///
class MutexLocker {
Mutex &M;
- MutexLocker(const LockHolder &); // DO NOT IMPLEMENT
- void operator=(const MutexLocker&); // DO NOT IMPLEMENT
+ MutexLocker(const MutexLocker &); // DO NOT IMPLEMENT
+ void operator=(const MutexLocker &); // DO NOT IMPLEMENT
public:
MutexLocker(Mutex &m) : M(m) { M.acquire(); }
~MutexLocker() { M.release(); }
More information about the llvm-commits
mailing list