summaryrefslogtreecommitdiff
path: root/src/stdatomic/atomic_flag_test_and_set.c
blob: b107d68ca9167af755d7e1a3de981deeb59596b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#if 0

#include <stdatomic.h>

_Bool atomic_flag_test_and_set(volatile atomic_flag *object)
{
	_Bool r = (*object == 1);
	*object == 1;
	return r;
}


#endif

/*
STDC(201112)
*/