From 4355eafde2b6a80d2b8feaba30b6a884aff070d9 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Wed, 13 Jun 2012 15:30:30 +0200 Subject: Imported Upstream version 1.0.6 --- src/common/dynamic-array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/dynamic-array.c') diff --git a/src/common/dynamic-array.c b/src/common/dynamic-array.c index e948821..24f2aaa 100644 --- a/src/common/dynamic-array.c +++ b/src/common/dynamic-array.c @@ -81,7 +81,7 @@ static int da_resize(da_array_t *array, da_resize_type_t type) dbg_da("Old items pointer: %p\n", old_items); // wait for readers to finish - synchronize_rcu(); + //synchronize_rcu(); // deallocate the old array dbg_da("RCU synchronized, deallocating old items array at address %p." "\n", old_items); @@ -205,7 +205,7 @@ void da_destroy(da_array_t *array) rcu_set_pointer(&array->items, NULL); pthread_mutex_unlock(&array->mtx); - synchronize_rcu(); + //synchronize_rcu(); free(old_items); pthread_mutex_destroy(&array->mtx); } -- cgit v1.2.3