blob: fe6b1704145745ac3b49e7118f3c9b664fea401e [file] [log] [blame]
Charles Davis53ca1f32010-11-29 19:44:50 +00001//===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
Michael J. Spencer1f6efa32010-11-29 18:16:10 +00002//
Reid Spencerb2164e52005-07-12 15:37:43 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Michael J. Spencer1f6efa32010-11-29 18:16:10 +00007//
Reid Spencerb2164e52005-07-12 15:37:43 +00008//===----------------------------------------------------------------------===//
9//
10// This file implements the Unix specific (non-pthread) Mutex class.
11//
12//===----------------------------------------------------------------------===//
13
14//===----------------------------------------------------------------------===//
15//=== WARNING: Implementation here must contain only generic UNIX code that
16//=== is guaranteed to work on *all* UNIX variants.
17//===----------------------------------------------------------------------===//
18
19namespace llvm
20{
21using namespace sys;
22
Owen Andersonb849a4d2009-06-18 17:53:17 +000023MutexImpl::MutexImpl( bool recursive)
Reid Spencerb2164e52005-07-12 15:37:43 +000024{
25}
26
Owen Andersonb849a4d2009-06-18 17:53:17 +000027MutexImpl::~MutexImpl()
Reid Spencerb2164e52005-07-12 15:37:43 +000028{
29}
30
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000031bool
Owen Andersonb849a4d2009-06-18 17:53:17 +000032MutexImpl::release()
Reid Spencerb2164e52005-07-12 15:37:43 +000033{
Reid Spencer875fd8f2006-12-05 17:53:26 +000034 return true;
Reid Spencerb2164e52005-07-12 15:37:43 +000035}
36
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000037bool
Owen Andersonb849a4d2009-06-18 17:53:17 +000038MutexImpl::tryacquire( void )
Reid Spencerb2164e52005-07-12 15:37:43 +000039{
Reid Spencer875fd8f2006-12-05 17:53:26 +000040 return true;
Reid Spencerb2164e52005-07-12 15:37:43 +000041}
42
43}