aboutsummaryrefslogtreecommitdiff
path: root/lib/scudo/scudo_tls_context_linux.inc
blob: 8d292bdbc932bf79a16e671f1d8a14b5c25df1dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===-- scudo_tls_context_linux.inc -----------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// Linux specific base thread context definition.
///
//===----------------------------------------------------------------------===//

#ifndef SCUDO_TLS_CONTEXT_LINUX_INC_
#define SCUDO_TLS_CONTEXT_LINUX_INC_

#ifndef SCUDO_TLS_H_
# error "This file must be included inside scudo_tls.h."
#endif  // SCUDO_TLS_H_

#if SANITIZER_LINUX && !SANITIZER_ANDROID

struct ScudoThreadContextPlatform {
  ALWAYS_INLINE void unlock() {}
};

#endif  // SANITIZER_LINUX && !SANITIZER_ANDROID

#endif  // SCUDO_TLS_CONTEXT_LINUX_INC_