--- title: "nowait | 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: - "nowait" dev_langs: - "C++" helpviewer_keywords: - "nowait OpenMP clause" ms.assetid: 8a74265d-879c-46cf-8071-a1084f24f16e caps.latest.revision: 9 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" --- # nowait Overrides the barrier implicit in a directive. ## Syntax ``` nowait ``` ## Remarks `nowait` applies to the following directives: - [for](../../../parallel/openmp/reference/for-openmp.md) - [sections](../../../parallel/openmp/reference/sections-openmp.md) - [single](../../../parallel/openmp/reference/single.md) For more information, see [2.4.1 for Construct](../../../parallel/openmp/2-4-1-for-construct.md), [2.4.2 sections Construct](../../../parallel/openmp/2-4-2-sections-construct.md), and [2.4.3 single Construct](../../../parallel/openmp/2-4-3-single-construct.md). ## Example ``` // omp_nowait.cpp // compile with: /openmp /c #include #define SIZE 5 void test(int *a, int *b, int *c, int size) { int i; #pragma omp parallel { #pragma omp for nowait for (i = 0; i < size; i++) b[i] = a[i] * a[i]; #pragma omp for nowait for (i = 0; i < size; i++) c[i] = a[i]/2; } } int main( ) { int a[SIZE], b[SIZE], c[SIZE]; int i; for (i=0; i