Sign in
◑
Theme
gdch-oss
/
third_party
/
8e0919c9a84bfc53f400a57354c79cd7e97192b4
/
.
/
runtime
/
linux
/
autoconf-atomic_fetch_add_unless.c
blob: b79c4742db5b65c829d2334051642e0e1ef30a9c [
file
]
#include
<linux/atomic.h>
int
foo
(
atomic_t
*
v
);
int
foo
(
atomic_t
*
v
)
{
return
atomic_fetch_add_unless
(
v
,
1
,
0
);
}