You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
176 B

#include "a.h"
struct X {
mutex m;
int n __attribute__((guarded_by(m)));
void f();
};
inline void unlock(X &x) __attribute__((unlock_function(x.m))) { x.m.unlock(); }