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