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
There is no guarantee that code at point (1) completes before invocation of so_5::send at point (2). Moreover, there could be a data race, because target_mbox may be modified at (1) while it's used at (2).
There is a tricky moment with the use of
wrapped_env_t
constructor with init function:There is no guarantee that code at point (1) completes before invocation of
so_5::send
at point (2). Moreover, there could be a data race, becausetarget_mbox
may be modified at (1) while it's used at (2).The correct way is:
But such code is more complicated.
May be another constructor of wrapped_env_t can help?
Something like:
The use of
so_5::wrapped_env_t::wait_init_completion
dictated to suspend the calling thread until init-function completes its work.The text was updated successfully, but these errors were encountered: