//===-- sanitizer_deadlock_detector_interface.h -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is a part of Sanitizer runtime. // Abstract deadlock detector interface. // FIXME: this is work in progress, nothing really works yet. // //===----------------------------------------------------------------------===// #ifndef SANITIZER_DEADLOCK_DETECTOR_INTERFACE_H #define SANITIZER_DEADLOCK_DETECTOR_INTERFACE_H #ifndef SANITIZER_DEADLOCK_DETECTOR_VERSION #define SANITIZER_DEADLOCK_DETECTOR_VERSION … #endif #include "sanitizer_internal_defs.h" #include "sanitizer_atomic.h" namespace __sanitizer { // dd - deadlock detector. // lt - logical (user) thread. // pt - physical (OS) thread. struct DDPhysicalThread; struct DDLogicalThread; struct DDMutex { … }; struct DDFlags { … }; struct DDReport { … }; struct DDCallback { … }; struct DDetector { … }; } // namespace __sanitizer #endif // SANITIZER_DEADLOCK_DETECTOR_INTERFACE_H