lsan_fuchsia.h 1.0 KB

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