brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · e730d8f Raw
36 lines · c
1//=-- lsan_fuchsia.h ---------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===---------------------------------------------------------------------===//8//9// This file is a part of LeakSanitizer.10// Standalone LSan RTL code specific to Fuchsia.11//12//===---------------------------------------------------------------------===//13 14#ifndef LSAN_FUCHSIA_H15#define LSAN_FUCHSIA_H16 17#include "lsan_thread.h"18#include "sanitizer_common/sanitizer_platform.h"19 20#if !SANITIZER_FUCHSIA21#error "lsan_fuchsia.h is used only on Fuchsia systems (SANITIZER_FUCHSIA)"22#endif23 24namespace __lsan {25 26class ThreadContext final : public ThreadContextLsanBase {27 public:28  explicit ThreadContext(int tid);29  void OnCreated(void *arg) override;30  void OnStarted(void *arg) override;31};32 33}  // namespace __lsan34 35#endif  // LSAN_FUCHSIA_H36