Path: blob/main/contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interface_ann.h
35269 views
//===-- tsan_interface_ann.h ------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of ThreadSanitizer (TSan), a race detector.9//10// Interface for dynamic annotations.11//===----------------------------------------------------------------------===//12#ifndef TSAN_INTERFACE_ANN_H13#define TSAN_INTERFACE_ANN_H1415#include <sanitizer_common/sanitizer_internal_defs.h>1617// This header should NOT include any other headers.18// All functions in this header are extern "C" and start with __tsan_.1920#ifdef __cplusplus21extern "C" {22#endif2324SANITIZER_INTERFACE_ATTRIBUTE void __tsan_acquire(void *addr);25SANITIZER_INTERFACE_ATTRIBUTE void __tsan_release(void *addr);2627#ifdef __cplusplus28} // extern "C"29#endif3031#endif // TSAN_INTERFACE_ANN_H323334