Buckets:
arudradey/ml-cpu-storage / emsdk /upstream /emscripten /cache /sysroot /include /sanitizer /rtsan_interface.h
| //===-- sanitizer/rtsan_interface.h -----------------------------*- 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 | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // | |
| // This file is a part of RealtimeSanitizer. | |
| // | |
| // Public interface header. | |
| //===----------------------------------------------------------------------===// | |
| extern "C" { | |
| // Disable all RTSan error reporting. | |
| // Must be paired with a call to `__rtsan_enable` | |
| void SANITIZER_CDECL __rtsan_disable(void); | |
| // Re-enable all RTSan error reporting. | |
| // Must follow a call to `__rtsan_disable`. | |
| void SANITIZER_CDECL __rtsan_enable(void); | |
| } // extern "C" | |
| namespace __rtsan { | |
| class ScopedDisabler { | |
| public: | |
| ScopedDisabler() { __rtsan_disable(); } | |
| ~ScopedDisabler() { __rtsan_enable(); } | |
| ScopedDisabler(const ScopedDisabler &) = delete; | |
| ScopedDisabler &operator=(const ScopedDisabler &) = delete; | |
| ScopedDisabler(ScopedDisabler &&) = delete; | |
| ScopedDisabler &operator=(ScopedDisabler &&) = delete; | |
| private: | |
| ScopedDisabler(const ScopedDisabler &); | |
| ScopedDisabler &operator=(const ScopedDisabler &); | |
| }; | |
| class ScopedDisabler { | |
| public: | |
| ScopedDisabler() {} | |
| ScopedDisabler(const ScopedDisabler &) = delete; | |
| ScopedDisabler &operator=(const ScopedDisabler &) = delete; | |
| ScopedDisabler(ScopedDisabler &&) = delete; | |
| ScopedDisabler &operator=(ScopedDisabler &&) = delete; | |
| private: | |
| ScopedDisabler(const ScopedDisabler &); | |
| ScopedDisabler &operator=(const ScopedDisabler &); | |
| }; | |
| } // namespace __rtsan | |
Xet Storage Details
- Size:
- 2.2 kB
- Xet hash:
- cc522c1b9676de90113cb79c75e8be97570709f9c392cf1efe75255c9629c1dc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.