Oops, ATOMIC_ACQ_REL is not a correct memmodel for __atomic_store_n
This commit is contained in:
parent
e83ded066a
commit
42016a35c8
@ -206,7 +206,7 @@ void json_object_seed(size_t seed) {
|
|||||||
if (new_seed == 0)
|
if (new_seed == 0)
|
||||||
new_seed = generate_seed();
|
new_seed = generate_seed();
|
||||||
|
|
||||||
__atomic_store_n(&hashtable_seed, new_seed, __ATOMIC_ACQ_REL);
|
__atomic_store_n(&hashtable_seed, new_seed, __ATOMIC_RELEASE);
|
||||||
} else {
|
} else {
|
||||||
/* Wait for another thread to do the seeding */
|
/* Wait for another thread to do the seeding */
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user