MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / enqueue_bulk

Method enqueue_bulk

include/dmlc/blockingconcurrentqueue.h:581–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579 // Thread-safe.
580 template<typename It>
581 inline bool enqueue_bulk(It itemFirst, size_t count)
582 {
583 if (details::likely(inner.enqueue_bulk(std::forward<It>(itemFirst), count))) {
584 sema->signal((LightweightSemaphore::ssize_t)(ssize_t)count);
585 return true;
586 }
587 return false;
588 }
589
590 // Enqueues several items using an explicit producer token.
591 // Allocates memory if required. Only fails if memory allocation fails

Callers

nothing calls this directly

Calls 2

likelyFunction · 0.85
signalMethod · 0.45

Tested by

no test coverage detected