1 //=-- lsan_fuchsia.h ---------------------------------------------------===//
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-exception
7 //===---------------------------------------------------------------------===//
9 // This file is a part of LeakSanitizer.
10 // Standalone LSan RTL code specific to Fuchsia.
12 //===---------------------------------------------------------------------===//
14 #ifndef LSAN_FUCHSIA_H
15 #define LSAN_FUCHSIA_H
17 #include "lsan_thread.h"
18 #include "sanitizer_common/sanitizer_platform.h"
20 #if !SANITIZER_FUCHSIA
21 #error "lsan_fuchsia.h is used only on Fuchsia systems (SANITIZER_FUCHSIA)"
26 class ThreadContext final
: public ThreadContextLsanBase
{
28 explicit ThreadContext(int tid
);
29 void OnCreated(void *arg
) override
;
30 void OnStarted(void *arg
) override
;
35 #endif // LSAN_FUCHSIA_H