blob: 10e7ecb75a5f71a6d1fa26eb1eed754db35e9c10 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- llvm/System/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +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 Anderson052b3062009-06-18 17:53:17 +000023MutexImpl::MutexImpl( bool recursive)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024{
25}
26
Owen Anderson052b3062009-06-18 17:53:17 +000027MutexImpl::~MutexImpl()
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028{
29}
30
31bool
Owen Anderson052b3062009-06-18 17:53:17 +000032MutexImpl::MutexImpl()
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033{
34 return true;
35}
36
37bool
Owen Anderson052b3062009-06-18 17:53:17 +000038MutexImpl::release()
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039{
40 return true;
41}
42
43bool
Owen Anderson052b3062009-06-18 17:53:17 +000044MutexImpl::tryacquire( void )
Dan Gohmanf17a25c2007-07-18 16:29:46 +000045{
46 return true;
47}
48
49}