LLVM  9.0.0svn
Mutex.inc
Go to the documentation of this file.
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 
27 {
28 }
29 
30 bool
32 {
33  return true;
34 }
35 
36 bool
38 {
39  return true;
40 }
41 
42 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
bool release()
Attempts to release the lock.
Definition: Mutex.cpp:95
MutexImpl(bool recursive=true)
Initializes the lock but doesn't acquire it.
Definition: Mutex.cpp:44
~MutexImpl()
Releases and removes the lock Destructor.
Definition: Mutex.cpp:76
bool tryacquire()
Attempts to acquire the lock without blocking.
Definition: Mutex.cpp:105