Variable changes by main and work threads without lock protection #1736
Replies: 5 comments 4 replies
-
You might be on to something here. The More study is needed. |
Beta Was this translation helpful? Give feedback.
-
Yes, PR #1743 is very relevant to this discussion and one of its changes it the obsolete Regarding this discussion, there can also be a problem with the interval statistics. This is because the statistics are collected by the streams threads, but the statistics are handled by the main thread, per the |
Beta Was this translation helpful? Give feedback.
-
The intention is that the the code will work if |
Beta Was this translation helpful? Give feedback.
-
So with the |
Beta Was this translation helpful? Give feedback.
-
PR #1773 has been merged! |
Beta Was this translation helpful? Give feedback.
-
Hi, the steam's
green_light
flag is changes by both the main and the worker thread, but without locking during the change. This may not a problem, as this is not a counter, etc., so my question is whether this was evaluated and found to be a non-issue?The
green_light
for a stream may be changed when callingiperf_check_throttle()
:iperf_send_mt(()
.send_timer_proc()
which is set byiperf_create_send_timers()
. (It seems that the periodic call tosend_timer_proc()
should have been set by each of the worker threads, and not by the main thread.)Beta Was this translation helpful? Give feedback.
All reactions