ck_epoch_reclaim (3) - Linux Manuals
ck_epoch_reclaim: immediately execute all deferred callbacks
NAME
ck_epoch_reclaim - immediately execute all deferred callbacksLIBRARY
Concurrency Kit (libck, -lck)SYNOPSIS
In ck_epoch.h Ft void Fn ck_epoch_reclaim ck_epoch_record_t *recordDESCRIPTION
The Fn ck_epoch_reclaim 3 function will unconditionally execute all callbacks that have been deferred with Fn ck_epoch_call 3 .EXAMPLE
#include <ck_epoch.h> #include <ck_stack.h> #include <stdlib.h> /* * epoch was previously initialized with ck_epoch_init. */ ck_epoch_t *epoch; void function(void) { ck_epoch_record_t *record; logically_delete(object); ck_epoch_call(epoch, record, &object->epoch_entry, destructor); /* * Wait until no threads could possibly have a reference to the * object we just deleted. */ ck_epoch_synchronize(epoch, record); /* * Execute all deferred callbacks. */ ck_epoch_reclaim(record); return; }
RETURN VALUES
This function has no return value.SEE ALSO
ck_epoch_init3, ck_epoch_register3, ck_epoch_unregister3, ck_epoch_recycle3, ck_epoch_poll3, ck_epoch_reclaim3, ck_epoch_barrier3, ck_epoch_call3, ck_epoch_begin3, ck_epoch_end3Additional information available at http://concurrencykit.org/