Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
Modules
/
Inputs
/
thread-safety
/
c.h
blob: ec849c2250a3bbcad13a208c5c11f6488984ff81 [
file
] [
log
] [
blame
]
#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
();
}