[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / __support / threads / mutex_common.h
blob2fde20a3fe828f37de867305d6d90b70619294ff
1 //===--- Common definitions useful for mutex implementations ----*- 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_SUPPORT_THREAD_MUTEX_COMMON_H
10 #define LLVM_LIBC_SRC_SUPPORT_THREAD_MUTEX_COMMON_H
12 namespace __llvm_libc {
14 enum class MutexError : int {
15 NONE,
16 BUSY,
17 TIMEOUT,
18 UNLOCK_WITHOUT_LOCK,
19 BAD_LOCK_STATE,
22 } // namespace __llvm_libc
24 #endif // LLVM_LIBC_SRC_SUPPORT_THREAD_MUTEX_COMMON_H