ck_epoch: Specify destructor in ck_epoch_retire.

ck_pring
Samy Al Bahra 13 years ago
parent 273bc0703d
commit 79c7e453ec

@ -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;

Loading…
Cancel
Save