1 //===-- tsan_ignoreset.h ----------------------------------------*- C++ -*-===//
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 ThreadSanitizer (TSan), a race detector.
11 // IgnoreSet holds a set of stack traces where ignores were enabled.
12 //===----------------------------------------------------------------------===//
13 #ifndef TSAN_IGNORESET_H
14 #define TSAN_IGNORESET_H
16 #include "tsan_defs.h"
23 void Add(StackID stack_id
);
24 void Reset() { size_
= 0; }
25 uptr
Size() const { return size_
; }
26 StackID
At(uptr i
) const;
29 static constexpr uptr kMaxSize
= 16;
31 StackID stacks_
[kMaxSize
];
36 #endif // TSAN_IGNORESET_H