From 79c7e453ecb864efe21dcfddd7d8219173480fa7 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 27 Oct 2011 17:20:01 +0000 Subject: [PATCH] ck_epoch: Specify destructor in ck_epoch_retire. --- include/ck_epoch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ck_epoch.h b/include/ck_epoch.h index fd6c5a0..622f1f5 100644 --- a/include/ck_epoch.h +++ b/include/ck_epoch.h @@ -112,9 +112,10 @@ ck_epoch_end(ck_epoch_record_t *record) } CK_CC_INLINE static void -ck_epoch_retire(ck_epoch_record_t *record, ck_epoch_entry_t *entry) +ck_epoch_retire(ck_epoch_record_t *record, ck_epoch_destructor_t destroy, ck_epoch_entry_t *entry) { + entry->destroy = destroy; ck_stack_push_spnc(&record->pending[record->epoch], &entry->stack_entry); record->n_pending += 1; return;