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

Method Push

core/utils/lock_less_queue.h:76–78  ·  view source on GitHub ↗

error codes: -1 is Quota exceeded. The objects have been enqueued, but the high water mark is exceeded. -2 is not enough room in the ring to enqueue; no object is enqueued.

Source from the content-addressed store, hash-verified

74 // but the high water mark is exceeded. -2 is not enough room in the
75 // ring to enqueue; no object is enqueued.
76 int Push(T obj) override {
77 return llring_enqueue(ring_, reinterpret_cast<void*>(obj));
78 }
79
80 int Push(T* objs, size_t count) override {
81 if(!llring_enqueue_bulk(ring_, reinterpret_cast<void**>(objs), count)) {

Callers

nothing calls this directly

Calls 2

llring_enqueueFunction · 0.85
llring_enqueue_bulkFunction · 0.85

Tested by

no test coverage detected