We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d0ea58 commit 0f274d1Copy full SHA for 0f274d1
1 file changed
include/daking/MPSC_queue.hpp
@@ -486,7 +486,7 @@ namespace daking {
486
DAKING_ALWAYS_INLINE void enqueue_bulk(const_reference value, size_type n) {
487
// N times thread_local operation, One time CAS operation.
488
// So it is more efficient than N times enqueue.
489
- if (n == 0) {
+ if (n == 0) DAKING_UNLIKELY {
490
return;
491
}
492
@@ -514,7 +514,7 @@ namespace daking {
514
"Iterator must be at least input iterator.");
515
static_assert(std::is_same_v<typename std::iterator_traits<InputIt>::value_type, value_type>,
516
"The value type of iterator must be same as MPSC_queue::value_type.");
517
518
519
520
0 commit comments