summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-08-07 11:59:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-08-07 11:59:57 +0000
commitea134f221f2a5c075b7539876a444b4a07362912 (patch)
treee72fb173590d83507dbee191ed72c5e5ba1f30c2 /llvm/lib/Support/Unix
parente57b60f321024064353b46489cfb25ee01fd55d7 (diff)
downloadbcm5719-llvm-ea134f221f2a5c075b7539876a444b4a07362912.tar.gz
bcm5719-llvm-ea134f221f2a5c075b7539876a444b4a07362912.zip
[Support] Base SmartMutex on std::recursive_mutex
- Remove support for non-recursive mutexes. This was unused. - The std::recursive_mutex is now created/destroyed unconditionally. Locking is still only done if threading is enabled. - Alias SmartScopedLock to std::lock_guard. This should make no semantic difference on the existing APIs. llvm-svn: 368158
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Mutex.inc42
1 files changed, 0 insertions, 42 deletions
diff --git a/llvm/lib/Support/Unix/Mutex.inc b/llvm/lib/Support/Unix/Mutex.inc
deleted file mode 100644
index 2c982b38d6f..00000000000
--- a/llvm/lib/Support/Unix/Mutex.inc
+++ /dev/null
@@ -1,42 +0,0 @@
-//===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// This file implements the Unix specific (non-pthread) Mutex class.
-//
-//===----------------------------------------------------------------------===//
-
-//===----------------------------------------------------------------------===//
-//=== WARNING: Implementation here must contain only generic UNIX code that
-//=== is guaranteed to work on *all* UNIX variants.
-//===----------------------------------------------------------------------===//
-
-namespace llvm
-{
-using namespace sys;
-
-MutexImpl::MutexImpl( bool recursive)
-{
-}
-
-MutexImpl::~MutexImpl()
-{
-}
-
-bool
-MutexImpl::release()
-{
- return true;
-}
-
-bool
-MutexImpl::tryacquire( void )
-{
- return true;
-}
-
-}
OpenPOWER on IntegriCloud