MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / enqueue

Method enqueue

dep/common/readerwriterqueue.h:683–690  ·  view source on GitHub ↗

Enqueues a copy of element on the queue. Allocates an additional block of memory if needed. Only fails (returns false) if memory allocation fails.

Source from the content-addressed store, hash-verified

681 // Allocates an additional block of memory if needed.
682 // Only fails (returns false) if memory allocation fails.
683 AE_FORCEINLINE bool enqueue(T const& element)
684 {
685 if (inner.enqueue(element)) {
686 sema.signal();
687 return true;
688 }
689 return false;
690 }
691
692 // Enqueues a moved copy of element on the queue.
693 // Allocates an additional block of memory if needed.

Callers 1

PushMethod · 0.80

Calls 1

signalMethod · 0.45

Tested by

no test coverage detected