Enqueues a copy of element on the queue. Allocates an additional block of memory if needed. Only fails (returns false) if memory allocation fails.
| 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. |