MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ck_hp_unregister

Function ck_hp_unregister

freebsd/contrib/ck/src/ck_hp.c:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void
120ck_hp_unregister(struct ck_hp_record *entry)
121{
122
123 entry->n_pending = 0;
124 entry->n_peak = 0;
125 entry->n_reclamations = 0;
126 ck_stack_init(&entry->pending);
127 ck_pr_fence_store();
128 ck_pr_store_int(&entry->state, CK_HP_FREE);
129 ck_pr_inc_uint(&entry->global->n_free);
130 return;
131}
132
133void
134ck_hp_register(struct ck_hp *state,

Callers

nothing calls this directly

Calls 1

ck_stack_initFunction · 0.85

Tested by

no test coverage detected