Win32 support for Mutex class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2005-07-13 02:15:18 +00:00
parent c087a43510
commit 6d2352249a
5 changed files with 40 additions and 15 deletions

View File

@ -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 @@ Mutex::tryacquire()
}
}
#elif defined(LLVM_ON_UNIX)
#include "Unix/Mutex.inc"
#elif defined( LLVM_ON_WIN32)