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 -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -