2010-11-29 19:44:50 +00:00
|
|
|
//===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
|
2010-11-29 18:16:10 +00:00
|
|
|
//
|
2005-07-12 15:37:43 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2010-11-29 18:16:10 +00:00
|
|
|
//
|
2005-07-12 15:37:43 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the Unix specific (non-pthread) Mutex class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//=== WARNING: Implementation here must contain only generic UNIX code that
|
|
|
|
//=== is guaranteed to work on *all* UNIX variants.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace llvm
|
|
|
|
{
|
|
|
|
using namespace sys;
|
|
|
|
|
2009-06-18 17:53:17 +00:00
|
|
|
MutexImpl::MutexImpl( bool recursive)
|
2005-07-12 15:37:43 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-06-18 17:53:17 +00:00
|
|
|
MutexImpl::~MutexImpl()
|
2005-07-12 15:37:43 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-11-29 18:16:10 +00:00
|
|
|
bool
|
2009-06-18 17:53:17 +00:00
|
|
|
MutexImpl::release()
|
2005-07-12 15:37:43 +00:00
|
|
|
{
|
2006-12-05 17:53:26 +00:00
|
|
|
return true;
|
2005-07-12 15:37:43 +00:00
|
|
|
}
|
|
|
|
|
2010-11-29 18:16:10 +00:00
|
|
|
bool
|
2009-06-18 17:53:17 +00:00
|
|
|
MutexImpl::tryacquire( void )
|
2005-07-12 15:37:43 +00:00
|
|
|
{
|
2006-12-05 17:53:26 +00:00
|
|
|
return true;
|
2005-07-12 15:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|