Path: blob/main/contrib/llvm-project/compiler-rt/lib/lsan/lsan_fuchsia.h
35233 views
//=-- lsan_fuchsia.h ---------------------------------------------------===//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 LeakSanitizer.9// Standalone LSan RTL code specific to Fuchsia.10//11//===---------------------------------------------------------------------===//1213#ifndef LSAN_FUCHSIA_H14#define LSAN_FUCHSIA_H1516#include "lsan_thread.h"17#include "sanitizer_common/sanitizer_platform.h"1819#if !SANITIZER_FUCHSIA20#error "lsan_fuchsia.h is used only on Fuchsia systems (SANITIZER_FUCHSIA)"21#endif2223namespace __lsan {2425class ThreadContext final : public ThreadContextLsanBase {26public:27explicit ThreadContext(int tid);28void OnCreated(void *arg) override;29void OnStarted(void *arg) override;30};3132} // namespace __lsan3334#endif // LSAN_FUCHSIA_H353637