//===-- hwasan_thread.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 HWAddressSanitizer. // //===----------------------------------------------------------------------===// #ifndef HWASAN_THREAD_H #define HWASAN_THREAD_H #include "hwasan_allocator.h" #include "sanitizer_common/sanitizer_common.h" #include "sanitizer_common/sanitizer_ring_buffer.h" namespace __hwasan { StackAllocationsRingBuffer; class Thread { … }; Thread *GetCurrentThread(); uptr *GetCurrentThreadLongPtr(); // Used to handle fork(). void EnsureMainThreadIDIsCorrect(); struct ScopedTaggingDisabler { … }; } // namespace __hwasan #endif // HWASAN_THREAD_H