blob: 10e7ecb75a5f71a6d1fa26eb1eed754db35e9c10 [file] [log] [blame]
Reid Spencerb2164e52005-07-12 15:37:43 +00001//===- llvm/System/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
2//
3// 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.
Reid Spencerb2164e52005-07-12 15:37:43 +00007//
8//===----------------------------------------------------------------------===//
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
31bool
Owen Andersonb849a4d2009-06-18 17:53:17 +000032MutexImpl::MutexImpl()
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
37bool
Owen Andersonb849a4d2009-06-18 17:53:17 +000038MutexImpl::release()
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
43bool
Owen Andersonb849a4d2009-06-18 17:53:17 +000044MutexImpl::tryacquire( void )
Reid Spencerb2164e52005-07-12 15:37:43 +000045{
Reid Spencer875fd8f2006-12-05 17:53:26 +000046 return true;
Reid Spencerb2164e52005-07-12 15:37:43 +000047}
48
49}