blob: 5a250b75af5b7e2a1d0cc03049bc35aa2a06afa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
//===-- tsan_ignoreset.h ----------------------------------------*- C++ -*-===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSanitizer (TSan), a race detector.
//
// IgnoreSet holds a set of stack traces where ignores were enabled.
//===----------------------------------------------------------------------===//
#ifndef TSAN_IGNORESET_H
#define TSAN_IGNORESET_H
#include "tsan_defs.h"
namespace __tsan {
class IgnoreSet {
public:
static const uptr kMaxSize = 16;
IgnoreSet();
void Add(u32 stack_id);
void Reset();
uptr Size() const;
u32 At(uptr i) const;
private:
uptr size_;
u32 stacks_[kMaxSize];
};
} // namespace __tsan
#endif // TSAN_IGNORESET_H
|