1 //===-- tsan_interface_ann.h ------------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
10 // Interface for dynamic annotations.
11 //===----------------------------------------------------------------------===//
12 #ifndef TSAN_INTERFACE_ANN_H
13 #define TSAN_INTERFACE_ANN_H
15 #include <sanitizer_common/sanitizer_internal_defs.h>
17 // This header should NOT include any other headers.
18 // All functions in this header are extern "C" and start with __tsan_.
24 void __tsan_acquire(void *addr
) SANITIZER_INTERFACE_ATTRIBUTE
;
25 void __tsan_release(void *addr
) SANITIZER_INTERFACE_ATTRIBUTE
;
31 #endif // TSAN_INTERFACE_ANN_H