From 9ab7b7ae428963523dff23ed51fda08398d9da4e Mon Sep 17 00:00:00 2001 From: David Joseph Date: Wed, 2 Mar 2011 00:42:02 -0500 Subject: [PATCH] Fixed a bug with ck_barrier_combining_aux. Since groups are now implemented, leaves can no longer skip to their parents. --- include/ck_barrier.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/ck_barrier.h b/include/ck_barrier.h index fb66aee..cc99b02 100644 --- a/include/ck_barrier.h +++ b/include/ck_barrier.h @@ -216,14 +216,6 @@ ck_barrier_combining_aux(struct ck_barrier_combining *barrier, struct ck_barrier_combining_group *tnode, unsigned int sense) { - - /* Incrementing a leaf's count is unnecessary. */ - if (tnode->lchild == NULL) { - ck_barrier_combining_aux(barrier, tnode->parent, sense); - ck_pr_store_uint(&tnode->sense, ~tnode->sense); - return; - } - if (ck_pr_faa_uint(&tnode->count, 1) == tnode->k - 1) { if (tnode->parent != NULL) ck_barrier_combining_aux(barrier, tnode->parent, sense);