]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/lib/Support/Unix/Mutex.inc
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / lib / Support / Unix / Mutex.inc
1 //===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the Unix specific (non-pthread) Mutex class.
10 //
11 //===----------------------------------------------------------------------===//
12
13 //===----------------------------------------------------------------------===//
14 //=== WARNING: Implementation here must contain only generic UNIX code that
15 //===          is guaranteed to work on *all* UNIX variants.
16 //===----------------------------------------------------------------------===//
17
18 namespace llvm
19 {
20 using namespace sys;
21
22 MutexImpl::MutexImpl( bool recursive)
23 {
24 }
25
26 MutexImpl::~MutexImpl()
27 {
28 }
29
30 bool
31 MutexImpl::release()
32 {
33   return true;
34 }
35
36 bool
37 MutexImpl::tryacquire( void )
38 {
39   return true;
40 }
41
42 }