| //===--- rtsan_context.h - Realtime Sanitizer -------------------*- 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 |
| //===----------------------------------------------------------------------===// |
| //===----------------------------------------------------------------------===// |
| bool InRealtimeContext() const; |
| Context(const Context &) = delete; |
| Context(Context &&) = delete; |
| Context &operator=(const Context &) = delete; |
| Context &operator=(Context &&) = delete; |
| [[nodiscard]] explicit ScopedBypass(Context &context) : context_(context) { |
| ~ScopedBypass() { context_.BypassPop(); } |
| ScopedBypass(const ScopedBypass &) = delete; |
| ScopedBypass &operator=(const ScopedBypass &) = delete; |
| ScopedBypass(ScopedBypass &&) = delete; |
| ScopedBypass &operator=(ScopedBypass &&) = delete; |
| Context &GetContextForThisThread(); |