annotate libsanitizer/tsan/tsan_interface_ann.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- tsan_interface_ann.h ------------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
111
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
8 //
kono
parents:
diff changeset
9 // This file is a part of ThreadSanitizer (TSan), a race detector.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 // Interface for dynamic annotations.
kono
parents:
diff changeset
12 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
13 #ifndef TSAN_INTERFACE_ANN_H
kono
parents:
diff changeset
14 #define TSAN_INTERFACE_ANN_H
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 #include <sanitizer_common/sanitizer_internal_defs.h>
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 // This header should NOT include any other headers.
kono
parents:
diff changeset
19 // All functions in this header are extern "C" and start with __tsan_.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 #ifdef __cplusplus
kono
parents:
diff changeset
22 extern "C" {
kono
parents:
diff changeset
23 #endif
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 SANITIZER_INTERFACE_ATTRIBUTE void __tsan_acquire(void *addr);
kono
parents:
diff changeset
26 SANITIZER_INTERFACE_ATTRIBUTE void __tsan_release(void *addr);
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 #ifdef __cplusplus
kono
parents:
diff changeset
29 } // extern "C"
kono
parents:
diff changeset
30 #endif
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #endif // TSAN_INTERFACE_ANN_H