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.
| 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)) { |
nothing calls this directly
no test coverage detected