Reid Spencer | b2164e5 | 2005-07-12 15:37:43 +0000 | [diff] [blame] | 1 | //===- llvm/System/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame^] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Reid Spencer | b2164e5 | 2005-07-12 15:37:43 +0000 | [diff] [blame] | 7 | // |
| 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 | |
| 19 | namespace llvm |
| 20 | { |
| 21 | using namespace sys; |
| 22 | |
| 23 | Mutex::Mutex( bool recursive) |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | Mutex::~Mutex() |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | bool |
| 32 | Mutex::acquire() |
| 33 | { |
Reid Spencer | 875fd8f | 2006-12-05 17:53:26 +0000 | [diff] [blame] | 34 | return true; |
Reid Spencer | b2164e5 | 2005-07-12 15:37:43 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | bool |
| 38 | Mutex::release() |
| 39 | { |
Reid Spencer | 875fd8f | 2006-12-05 17:53:26 +0000 | [diff] [blame] | 40 | return true; |
Reid Spencer | b2164e5 | 2005-07-12 15:37:43 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | bool |
| 44 | Mutex::tryacquire( void ) |
| 45 | { |
Reid Spencer | 875fd8f | 2006-12-05 17:53:26 +0000 | [diff] [blame] | 46 | return true; |
Reid Spencer | b2164e5 | 2005-07-12 15:37:43 +0000 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | } |