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

#include <stdatomic.h>

_Bool atomic_flag_test_and_set_explicit(volatile atomic_flag *object, memory_order order)
{
	(void)order;
	_Bool r = (*object == 1);
	*object = 1;
	return r;
}


#endif

/*
STDC(201112)
*/