Enqueues a single item (by copying it). Allocates memory if required. Only fails if memory allocation fails (or implicit production is disabled because Traits::INITIAL_IMPLICIT_PRODUCER_HASH_SIZE is 0, or Traits::MAX_SUBQUEUE_SIZE has been defined and would be surpassed). Thread-safe.
| 1006 | // or Traits::MAX_SUBQUEUE_SIZE has been defined and would be surpassed). |
| 1007 | // Thread-safe. |
| 1008 | inline bool enqueue(T const& item) |
| 1009 | { |
| 1010 | MOODYCAMEL_CONSTEXPR_IF (INITIAL_IMPLICIT_PRODUCER_HASH_SIZE == 0) return false; |
| 1011 | else return inner_enqueue<CanAlloc>(item); |
| 1012 | } |
| 1013 | |
| 1014 | // Enqueues a single item (by moving it, if possible). |
| 1015 | // Allocates memory if required. Only fails if memory allocation fails (or implicit |
nothing calls this directly
no test coverage detected