MCPcopy Create free account
hub / github.com/ceph/ceph / enqueue

Method enqueue

src/common/PrioritizedQueue.h:256–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 void enqueue(K cl, unsigned priority, unsigned cost, T&& item) final {
257 if (cost < min_cost)
258 cost = min_cost;
259 if (cost > max_tokens_per_subqueue)
260 cost = max_tokens_per_subqueue;
261 create_queue(priority)->enqueue(cl, cost, std::move(item));
262 }
263
264 void enqueue_front(K cl, unsigned priority, unsigned cost, T&& item) final {
265 if (cost < min_cost)

Callers 1

enqueue_strictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected