You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f1_keywords: ["OpenMP data types", "omp_lock_t", "omp_nest_lock_t"]
7
8
dev_langs: ["C++"]
9
+
helpviewer_keywords: ["OpenMP data types", "omp_lock_t OpenMP data type", "omp_nest_lock_t OpenMP data type"]
8
10
ms.assetid: cf1e1045-4d12-4d03-80b7-d5843b80ef85
9
11
author: "mikeblome"
10
12
ms.author: "mblome"
@@ -16,11 +18,43 @@ Provides links to data types used in the OpenMP API.
16
18
17
19
The Visual C++ implementation of the OpenMP standard includes the following data types.
18
20
19
-
|Data type|Description|
20
-
|---------------|-----------------|
21
-
|[omp_lock_t](../../../parallel/openmp/reference/omp-lock-t.md)|A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.|
22
-
|[omp_nest_lock_t](../../../parallel/openmp/reference/omp-nest-lock-t.md)|A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.|
[omp_lock_t](#omp-lock-t) | A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.
24
+
[omp_nest_lock_t](#omp-nest-lock-t) | A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.
For more information, see [3.2 Lock Functions](../../../parallel/openmp/3-2-lock-functions.md).
39
+
40
+
### Example
41
+
42
+
See [omp_init_lock](../../../parallel/openmp/reference/omp-init-lock.md) for an example of using `omp_lock_t`.
43
+
44
+
## <aname="omp-nest-lock-t"></a>omp_nest_lock_t
45
+
46
+
A type that holds the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.
0 commit comments