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

Function ck_stack_batch_pop_npsc

freebsd/contrib/ck/include/ck_stack.h:319–328  ·  view source on GitHub ↗

* Pop all items off a stack. */

Source from the content-addressed store, hash-verified

317 * Pop all items off a stack.
318 */
319CK_CC_INLINE static struct ck_stack_entry *
320ck_stack_batch_pop_npsc(struct ck_stack *target)
321{
322 struct ck_stack_entry *n;
323
324 n = target->head;
325 target->head = NULL;
326
327 return n;
328}
329
330/*
331 * Stack initialization function. Guarantees initialization across processors.

Callers 1

epoch_call_taskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected