-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is cpp-subprocess thread safe? #20
Comments
Hey! Thanks for reporting the issue. Also, Merry Christmas!! |
Merry Christmas to you too 😄 |
I tried reproducing this with std::thread instead of Open MP:
Popen object if used within a thread context should be thread safe. Is there any Open MP specific thing going on here ? |
Hi @arun11299 I failed to reproduce the issue on an MCVE. Thanks a lot for looking into this. I'll investigate further and will let you know if I have any useful findings. |
Sure. Let me know. |
Or does it provide the option of thread safety?
In my code I'm using an openmp loop where I would like to call
sp::Popen
.It looks something like this:
where v is a
std::vector<std::string>
but it hangs randomly at thefork()
call in subprocess.hpp:1159Thanks in advance and thanks for the amazing library.
The text was updated successfully, but these errors were encountered: