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
passes references to start and stop to other threads. These variables are then overwritten in the next iteration, and may even go out of scope when the function finishes. This is undefined behaviour. Instead, the thread should receive copies of these variables.
The text was updated successfully, but these errors were encountered:
Line 108
push_task([&start, &end, &loop, &blocks_running] {
passes references to
start
andstop
to other threads. These variables are then overwritten in the next iteration, and may even go out of scope when the function finishes. This is undefined behaviour. Instead, the thread should receive copies of these variables.The text was updated successfully, but these errors were encountered: