Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当某个线程执行omp_set_lock时,会执行隐式刷新。
omp_set_lock
但这是否意味着在这个特定线程刷新之后,所有其他线程都会将其私有视图更新为共享内存中的值,即使它们自己不执行刷新。还是他们仍会从私人视图中读取值?
否:为了获得一致的视图,所有线程都必须执行刷新。这在规范的第 1.4.3 节中进行了解释。