Oops, ATOMIC_ACQ_REL is not a correct memmodel for __atomic_store_n

This commit is contained in:
Petri Lehtinen 2014-02-11 15:14:31 +02:00
parent e83ded066a
commit 42016a35c8

View File

@ -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 {