@@ -727,7 +727,7 @@ class ConcurrentQueue {
727727 }
728728
729729 // Enqueues a single item using this ex_cpu thread's explicit producer.
730- template <typename U> inline void enqueue_ex_cpu (U&& item, size_t priority) {
730+ template <typename U> TMC_FORCE_INLINE inline void enqueue_ex_cpu (U&& item, size_t priority) {
731731 ExplicitProducer** producers =
732732 static_cast <ExplicitProducer**>(tmc::detail::this_thread::producers);
733733 ExplicitProducer* this_thread_prod =
@@ -744,7 +744,7 @@ class ConcurrentQueue {
744744
745745 // Enqueues several items using this ex_cpu thread's explicit producer.
746746 template <typename It>
747- void enqueue_bulk_ex_cpu (It itemFirst, size_t count, size_t priority) {
747+ TMC_FORCE_INLINE void enqueue_bulk_ex_cpu (It itemFirst, size_t count, size_t priority) {
748748 ExplicitProducer** producers =
749749 static_cast <ExplicitProducer**>(tmc::detail::this_thread::producers);
750750 ExplicitProducer* this_thread_prod =
@@ -1416,7 +1416,7 @@ class ConcurrentQueue {
14161416 }
14171417 }
14181418
1419- template <typename U> inline void enqueue (U&& element) {
1419+ template <typename U> TMC_FORCE_INLINE inline void enqueue (U&& element) {
14201420 index_t currentTailIndex =
14211421 this ->tailIndex .load (std::memory_order_relaxed);
14221422 index_t newTailIndex = 1 + currentTailIndex;
@@ -1748,7 +1748,7 @@ class ConcurrentQueue {
17481748 }
17491749
17501750 template <typename It>
1751- void MOODYCAMEL_NO_TSAN enqueue_bulk (It itemFirst, size_t count) {
1751+ TMC_FORCE_INLINE void MOODYCAMEL_NO_TSAN enqueue_bulk (It itemFirst, size_t count) {
17521752 // static constexpr bool HasMoveConstructor = std::is_constructible_v<
17531753 // T, std::add_rvalue_reference_t<std::iter_value_t<It>>>;
17541754 static constexpr bool HasNoexceptMoveConstructor =
0 commit comments