MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / push

Method push

3rd/MPMCQueue/include/MPMCQueue.hpp:65–67  ·  view source on GitHub ↗

* @brief Attempt to enqueue an item * * @param item The item to enqueue * @return true if the item was successfully enqueued * @return false if the queue is full */

Source from the content-addressed store, hash-verified

63 * @return false if the queue is full
64 */
65 [[nodiscard]] auto push(const T& item) noexcept -> bool {
66 return enqueue_impl(item);
67 }
68
69 /**
70 * @brief Attempt to enqueue an item (move version)

Callers 3

TESTFunction · 0.80
SleepMethod · 0.80
LogFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64