Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 1.13 KB

File metadata and controls

55 lines (49 loc) · 1.13 KB
title barrier | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
barrier
dev_langs
C++
helpviewer_keywords
barrier OpenMP directive
ms.assetid 5c73ad4f-c768-443a-8f9e-4fd8bc2253c7
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

barrier

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