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
Post a Comment