[Clang][SME2] Enable multi-vector loads & stores for SME2 (#75821)
[llvm-project.git] / compiler-rt / lib / gwp_asan / platform_specific / mutex_posix.h
blob7f0239198f565858e661a654927e969b847f171e
1 //===-- mutex_posix.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(__unix__)
10 #ifndef GWP_ASAN_MUTEX_POSIX_H_
11 #define GWP_ASAN_MUTEX_POSIX_H_
13 #include <pthread.h>
15 namespace gwp_asan {
16 class PlatformMutex {
17 protected:
18 pthread_mutex_t Mu = PTHREAD_MUTEX_INITIALIZER;
20 } // namespace gwp_asan
22 #endif // GWP_ASAN_MUTEX_POSIX_H_
23 #endif // defined(__unix__)