File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ extern "C" {
25
25
#endif // __cplusplus
26
26
27
27
// Disable all RTSan error reporting.
28
+ // Must be paired with a call to `__rtsan_enable`
28
29
void SANITIZER_CDECL __rtsan_disable (void );
29
30
30
31
// Re-enable all RTSan error reporting.
31
- // The counterpart to `__rtsan_disable`.
32
+ // Must follow a call to `__rtsan_disable`.
32
33
void SANITIZER_CDECL __rtsan_enable (void );
33
34
34
35
#ifdef __cplusplus
@@ -54,7 +55,7 @@ class ScopedDisabler {
54
55
#endif // __cplusplus >= 201103L
55
56
};
56
57
57
- #else // doesn't have realtime_sanitizer
58
+ #else
58
59
59
60
class ScopedDisabler {
60
61
public:
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ SANITIZER_INTERFACE_ATTRIBUTE void __rtsan_disable();
42
42
// See documentation in rtsan_interface.h.
43
43
SANITIZER_INTERFACE_ATTRIBUTE void __rtsan_enable ();
44
44
45
- // Expect that the next call to a function with the given name will not be
46
- // called from a realtime context.
47
45
SANITIZER_INTERFACE_ATTRIBUTE void
48
46
__rtsan_expect_not_realtime (const char *intercepted_function_name);
49
47
You can’t perform that action at this time.
0 commit comments