diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-06 22:33:17 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-06 22:33:17 +0000 |
commit | 5616dc9ea64d8fcc7f366f6c11b050817d7ec227 (patch) | |
tree | 9f64550feb6292849f05c6b3c215db27eda132cb /include/Support/ThreadSupport.h | |
parent | 5852a2bcb7dd5d6344042f2ab78754c27938e954 (diff) |
Use autoconf answers from config.h (FIXME, should autoconf this file
directly instead).
Fix LockHolder/MutexLocker typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/ThreadSupport.h')
-rw-r--r-- | include/Support/ThreadSupport.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/Support/ThreadSupport.h b/include/Support/ThreadSupport.h index 21c1073b7a..9689307f87 100644 --- a/include/Support/ThreadSupport.h +++ b/include/Support/ThreadSupport.h @@ -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 @@ namespace llvm { /// 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(); } |