Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 1.34 KB

File metadata and controls

61 lines (54 loc) · 1.34 KB
title omp_set_lock | 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
omp_set_lock
dev_langs
C++
helpviewer_keywords
omp_set_lock OpenMP function
ms.assetid ded839cb-ca19-403f-8622-eb52ce512d31
caps.latest.revision 7
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

omp_set_lock

Blocks thread execution until a lock is available.

Syntax

void omp_set_lock(  
   omp_lock_t *lock  
);  

Remarks

where,

lock
A variable of type omp_lock_t that was initialized with omp_init_lock.

Remarks

For more information, see 3.2.3 omp_set_lock and omp_set_nest_lock Functions.

Examples

See omp_init_lock for an example of using omp_set_lock.

See Also

Functions