brintos

brintos / llvm-project-archived public Read only

0
0
Text · 176 B · ec849c2 Raw
11 lines · c
1#include "a.h"2 3struct X {4  mutex m;5  int n __attribute__((guarded_by(m)));6 7  void f();8};9 10inline void unlock(X &x) __attribute__((unlock_function(x.m))) { x.m.unlock(); }11