MCPcopy Create free account
hub / github.com/NetSys/bess / PopFreeEntryIndex

Method PopFreeEntryIndex

core/utils/cuckoo_map.h:318–325  ·  view source on GitHub ↗

Pop a free entry index from stack and return the index

Source from the content-addressed store, hash-verified

316
317 // Pop a free entry index from stack and return the index
318 EntryIndex PopFreeEntryIndex() {
319 if (free_entry_indices_.empty()) {
320 ExpandEntries();
321 }
322 size_t idx = free_entry_indices_.top();
323 free_entry_indices_.pop();
324 return idx;
325 }
326
327 // Try to add (key, value) to the bucket indexed by bucket_idx
328 // Return the pointer to the entry if success. Otherwise return nullptr.

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected