MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / try_enqueue_bulk

Method try_enqueue_bulk

concurrentqueue.h:1123–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121 // Thread-safe.
1122 template<typename It>
1123 bool try_enqueue_bulk(It itemFirst, size_t count)
1124 {
1125 MOODYCAMEL_CONSTEXPR_IF (INITIAL_IMPLICIT_PRODUCER_HASH_SIZE == 0) return false;
1126 else return inner_enqueue_bulk<CannotAlloc>(itemFirst, count);
1127 }
1128
1129 // Enqueues several items using an explicit producer token.
1130 // Does not allocate memory. Fails if not enough room to enqueue.

Callers 3

enqueue_bulkMethod · 0.45
subqueue_size_limitMethod · 0.45
full_apiMethod · 0.45

Calls 1

MOODYCAMEL_CONSTEXPR_IFFunction · 0.85

Tested by 3

enqueue_bulkMethod · 0.36
subqueue_size_limitMethod · 0.36
full_apiMethod · 0.36