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

Method try_enqueue

include/dmlc/concurrentqueue.h:987–990  ·  view source on GitHub ↗

Enqueues a single item (by copying it). Does not allocate memory. Fails if not enough room to enqueue (or implicit production is disabled because Traits::INITIAL_IMPLICIT_PRODUCER_HASH_SIZE is 0). Thread-safe.

Source from the content-addressed store, hash-verified

985 // is 0).
986 // Thread-safe.
987 inline bool try_enqueue(T const &item) {
988 if (INITIAL_IMPLICIT_PRODUCER_HASH_SIZE == 0) return false;
989 return inner_enqueue<CannotAlloc>(item);
990 }
991
992 // Enqueues a single item (by moving it, if possible).
993 // Does not allocate memory (except for one-time implicit producer).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected