blob: 2c982b38d6ffe15a121eb2e8cc082bf273dcc8a8 [file] [log] [blame]
Charles Davis54c9eb62010-11-29 19:44:50 +00001//===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
Michael J. Spencer447762d2010-11-29 18:16:10 +00002//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Michael J. Spencer447762d2010-11-29 18:16:10 +00006//
Reid Spencerf4049812005-07-12 15:37:43 +00007//===----------------------------------------------------------------------===//
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
18namespace llvm
19{
20using namespace sys;
21
Owen Anderson68f65982009-06-18 17:53:17 +000022MutexImpl::MutexImpl( bool recursive)
Reid Spencerf4049812005-07-12 15:37:43 +000023{
24}
25
Owen Anderson68f65982009-06-18 17:53:17 +000026MutexImpl::~MutexImpl()
Reid Spencerf4049812005-07-12 15:37:43 +000027{
28}
29
Michael J. Spencer447762d2010-11-29 18:16:10 +000030bool
Owen Anderson68f65982009-06-18 17:53:17 +000031MutexImpl::release()
Reid Spencerf4049812005-07-12 15:37:43 +000032{
Reid Spencer17923262006-12-05 17:53:26 +000033 return true;
Reid Spencerf4049812005-07-12 15:37:43 +000034}
35
Michael J. Spencer447762d2010-11-29 18:16:10 +000036bool
Owen Anderson68f65982009-06-18 17:53:17 +000037MutexImpl::tryacquire( void )
Reid Spencerf4049812005-07-12 15:37:43 +000038{
Reid Spencer17923262006-12-05 17:53:26 +000039 return true;
Reid Spencerf4049812005-07-12 15:37:43 +000040}
41
42}