MCPcopy Create free account
hub / github.com/alibaba/zvec / enqueue

Method enqueue

src/include/zvec/ailego/parallel/thread_queue.h:224–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 //! Push a task to the queue
223 template <typename T>
224 void enqueue(uint64_t key, T &&handle) {
225 threads_[JumpHash(key, static_cast<int32_t>(threads_.size()))]->enqueue(
226 std::forward<T>(handle));
227 }
228
229 //! Push a task to the queue
230 template <typename T>

Callers

nothing calls this directly

Calls 2

JumpHashFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected