Export (0) Print
Expand All
2 out of 3 rated this helpful - Rate this topic


Synchronizes all threads in a team; all threads pause at the barrier, until all threads execute the barrier.

#pragma omp barrier

The barrier directive supports no OpenMP clauses.

For more information, see 2.6.3 barrier Directive.

For a sample of how to use barrier, see master.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.