From 8c708da8e8711c1456550695ec0d6a96b6232d63 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Mon, 21 Mar 2011 08:49:28 -0400 Subject: [PATCH] ck_epoch: Use volatile store when updating local epoch. --- include/ck_epoch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_epoch.h b/include/ck_epoch.h index 91d624f..e8923aa 100644 --- a/include/ck_epoch.h +++ b/include/ck_epoch.h @@ -205,7 +205,7 @@ ck_epoch_start(struct ck_epoch_record *record) ck_stack_init(&record->pending[epoch]); - record->epoch = g_epoch; + ck_pr_store_uint(&record->epoch, g_epoch); record->delta = 0; break; }