Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / lib / gwp_asan / platform_specific / mutex_fuchsia.h
blobedfc1a6f50b49da725bc464fb4c0b3f065a7cfaf
1 //===-- mutex_fuchsia.h -----------------------------------------*- 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 #if defined(__Fuchsia__)
10 #ifndef GWP_ASAN_MUTEX_FUCHSIA_H_
11 #define GWP_ASAN_MUTEX_FUCHSIA_H_
13 #include <lib/sync/mutex.h>
15 namespace gwp_asan {
16 class PlatformMutex {
17 protected:
18 sync_mutex_t Mu = {};
20 } // namespace gwp_asan
22 #endif // GWP_ASAN_MUTEX_FUCHSIA_H_
23 #endif // defined(__Fuchsia__)