From af2c8aca25d5a7502cfb7e8729518700bc241c9b Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sat, 16 Jan 2016 02:58:28 +0200 Subject: [PATCH] minor fixes; --- include/Makefile.am | 3 ++- lib/cas.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/Makefile.am b/include/Makefile.am index f96454d..5dfe5a1 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1 +1,2 @@ -nobase_include_HEADERS = tdata/bitwise.h tdata/idx_allocator.h tdata/macro.h tdata/tree.h tdata/usrtc.h tdata/list.h +nobase_include_HEADERS = tdata/bitwise.h tdata/idx_allocator.h tdata/macro.h \ + tdata/tree.h tdata/usrtc.h tdata/list.h tdata/ctrie.h diff --git a/lib/cas.c b/lib/cas.c index 3a35d7c..2fbe1c7 100644 --- a/lib/cas.c +++ b/lib/cas.c @@ -36,7 +36,7 @@ _Bool __sync_bool_compare_and_swap_8 (uint64_t* ptr, uint64_t old, uint64_t new) int i; _Bool ret; - i = pthread_mutex_lock(&sync_lock); + i = pthread_mutex_lock(&__sync_lock); if(*ptr != old) ret = 0; else { @@ -44,7 +44,7 @@ _Bool __sync_bool_compare_and_swap_8 (uint64_t* ptr, uint64_t old, uint64_t new) ret = 1; } - i = pthread_mutex_unlock(&sync_lock); + i = pthread_mutex_unlock(&__sync_lock); return ret; }