summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2009-04-30 20:05:47 +0200
committerNeal H. Walfield <neal@gnu.org>2009-04-30 20:05:47 +0200
commitebc526ccec316cafd473b70d9e9ba340818d5756 (patch)
treed44793b855dc8072d3bb89da662db55930eafa2e
parent5b45875ff585fb9d495fe4e4ede54b7a39f2e341 (diff)
Fix use of __sync_val_compare_and_swap.
-rw-r--r--viengoos/bottom-half.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/viengoos/bottom-half.c b/viengoos/bottom-half.c
index 3bb081f..9e75d05 100644
--- a/viengoos/bottom-half.c
+++ b/viengoos/bottom-half.c
@@ -30,8 +30,7 @@ bottom_half_register (struct bottom_half *bh)
do
bh->next = bottom_halves;
- while (__sync_val_compare_and_swap (&bottom_halves, bh->next, bh)
- != bh->next);
+ while (! __sync_bool_compare_and_swap (&bottom_halves, bh->next, bh));
}
void
@@ -41,7 +40,7 @@ bottom_half_run_hard (void)
do
bh = bottom_halves;
- while (bh && !__sync_val_compare_and_swap (&bottom_halves, bh, 0));
+ while (bh && !__sync_bool_compare_and_swap (&bottom_halves, bh, 0));
if (! bh)
return;