Share via


barrier

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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

Syntax

#pragma omp barrier  

Remarks

The barrier directive supports no OpenMP clauses.

For more information, see 2.6.3 barrier Directive.

Example

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

See Also

Directives