c++ - How to share pointer between threads in Open MP safely? -


i have dynamically allocated array of flags, can read , modified different threads in open mp, there safe way ensure threads within open mp can read up-to-date data in array?

i tried barrier/flush/volatile, looks have problems, if beyond scope of open mp, multi-threading library can in windows os? tbb or cilk+?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -