LLVM API Documentation

Unix/Mutex.inc
Go to the documentation of this file.
00001 //===- llvm/Support/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 MutexImpl::MutexImpl( bool recursive)
00024 {
00025 }
00026 
00027 MutexImpl::~MutexImpl()
00028 {
00029 }
00030 
00031 bool
00032 MutexImpl::release()
00033 {
00034   return true;
00035 }
00036 
00037 bool
00038 MutexImpl::tryacquire( void )
00039 {
00040   return true;
00041 }
00042 
00043 }