mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Use autoconf answers from config.h (FIXME, should autoconf this file
directly instead). Fix LockHolder/MutexLocker typo. llvm-svn: 11156
This commit is contained in:
parent
c247c5ec58
commit
6a4cdc6ee6
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user