diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-06-02 01:40:51 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-06-02 01:40:51 -0400 |
commit | d9d93565f3b401e0f6c16e18a892ecbdab0dbe51 (patch) | |
tree | dacbab084c0743eccc9e91c9d4184e8ea66b92d3 | |
parent | b234256e8c73f2ac347b867602dfaa358dc711c5 (diff) | |
download | dimension-d9d93565f3b401e0f6c16e18a892ecbdab0dbe51.tar.xz |
pool: Use relaxed atomic_store() instead of atomic_init().
atomic_init() emits an mfence for some reason.
-rw-r--r-- | libdimension/pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/pool.c b/libdimension/pool.c index c969bca..8973371 100644 --- a/libdimension/pool.c +++ b/libdimension/pool.c @@ -58,7 +58,7 @@ dmnsn_new_pool(void) { dmnsn_pool *pool = DMNSN_MALLOC(dmnsn_pool); dmnsn_key_create(&pool->thread_block, NULL); - atomic_init(&pool->chain, NULL); + atomic_store_explicit(&pool->chain, NULL, memory_order_relaxed); return pool; } |