mirror of
https://github.com/asticode/go-astiav.git
synced 2025-09-26 20:21:15 +08:00
11 lines
177 B
C
11 lines
177 B
C
#include <stdatomic.h>
|
|
|
|
int astiavAtomicLoadInt(atomic_int* i)
|
|
{
|
|
return atomic_load(i);
|
|
}
|
|
|
|
void astiavAtomicStoreInt(atomic_int* i, int v)
|
|
{
|
|
return atomic_store(i, v);
|
|
} |