LLVM API Documentation

Unix/Mutex.inc

Go to the documentation of this file.
00001 //===- llvm/System/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
00002 // 
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 // 
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements the Unix specific (non-pthread) Mutex class.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 //===----------------------------------------------------------------------===//
00015 //=== WARNING: Implementation here must contain only generic UNIX code that
00016 //===          is guaranteed to work on *all* UNIX variants.
00017 //===----------------------------------------------------------------------===//
00018 
00019 namespace llvm
00020 {
00021 using namespace sys;
00022 
00023 Mutex::Mutex( bool recursive)
00024 {
00025 }
00026 
00027 Mutex::~Mutex()
00028 {
00029 }
00030 
00031 bool 
00032 Mutex::acquire()
00033 {
00034   return true;
00035 }
00036 
00037 bool 
00038 Mutex::release()
00039 {
00040   return true;
00041 }
00042 
00043 bool 
00044 Mutex::tryacquire( void )
00045 {
00046   return true;
00047 }
00048 
00049 }