You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor of class disruptorplus::spin_wait has the call to std::thread::hardware_concurrency(). It affects latency of all disruptorplus::spin_wait_strategy::wait_until_published() methods:
The constructor of
class disruptorplus::spin_wait
has the call tostd::thread::hardware_concurrency()
. It affects latency of alldisruptorplus::spin_wait_strategy::wait_until_published()
methods:disruptorplus/include/disruptorplus/spin_wait.hpp
Lines 40 to 50 in 748e354
disruptorplus/include/disruptorplus/spin_wait_strategy.hpp
Lines 51 to 65 in 748e354
disruptorplus/include/disruptorplus/spin_wait_strategy.hpp
Lines 142 to 163 in 748e354
Also, there are some redundant code which trying to hide negative impact of this defect:
disruptorplus/include/disruptorplus/sequence_barrier_group.hpp
Lines 164 to 170 in 748e354
disruptorplus/include/disruptorplus/sequence_barrier_group.hpp
Lines 204 to 210 in 748e354
Possible fix is to save the result of
std::thread::hardware_concurrency()
in some static variable and reuse it inspin_wait
ctor.The text was updated successfully, but these errors were encountered: