☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
Modules
/
Inputs
/
thread-safety
/
c.h
☽
☼
clang/test/Modules/Inputs/thread-safety/c.h
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
#include "a.h"
2
3
struct X {
4
mutex m;
5
int n __attribute__((guarded_by(m)));
6
7
void f();
8
};
9
10
inline void unlock(X &x) __attribute__((unlock_function(x.m))) { x.m.unlock(); }