2005-07-12 15:37:43 +00:00
|
|
|
//===- llvm/System/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by Reid Spencer and is distributed under the
|
|
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
Mutex::Mutex( bool recursive)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Mutex::~Mutex()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
Mutex::acquire()
|
|
|
|
{
|
2006-12-05 17:53:26 +00:00
|
|
|
return true;
|
2005-07-12 15:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
Mutex::release()
|
|
|
|
{
|
2006-12-05 17:53:26 +00:00
|
|
|
return true;
|
2005-07-12 15:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
Mutex::tryacquire( void )
|
|
|
|
{
|
2006-12-05 17:53:26 +00:00
|
|
|
return true;
|
2005-07-12 15:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|