MCPcopy Create free account
hub / github.com/facebook/CacheLib / enqueueWithKey

Method enqueueWithKey

cachelib/navy/scheduler/ThreadPoolJobScheduler.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void ThreadPoolExecutor::enqueueWithKey(Job job,
68 folly::StringPiece name,
69 JobQueue::QueuePos pos,
70 uint64_t key) {
71 queues_[key % queues_.size()]->enqueue(std::move(job), name, pos);
72}
73
74uint64_t ThreadPoolExecutor::finish() {
75 uint64_t ec = 0;

Callers 1

scheduleJobLockedMethod · 0.45

Calls 4

numShardsFunction · 0.85
enqueueMethod · 0.80
sizeMethod · 0.45
incMethod · 0.45

Tested by

no test coverage detected