Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
atomic-2.C
blob: ac363eb16dac12b8174f3216da7bc6a43be8b88d [
file
] [
log
] [
blame
]
// PR c++/57926
long
Mutex
[
1
];
int
AcquireLogMutex
(
void
)
{
return
__atomic_exchange_n
(
Mutex
,
1
,
__ATOMIC_SEQ_CST
);
}
void
ReleaseLogMutex
(
void
)
{
long
i
=
0
;
__atomic_store
(
Mutex
,
&
i
,
__ATOMIC_SEQ_CST
);
}