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; }