Skip to content

Commit 44bafc0

Browse files
Copied the contents of each OpenMP data type into its parent topic.
1 parent 6f637d6 commit 44bafc0

1 file changed

Lines changed: 41 additions & 7 deletions

File tree

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
title: "OpenMP Data Types | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "10/23/2018"
55
ms.technology: ["cpp-parallel"]
66
ms.topic: "reference"
7+
f1_keywords: ["OpenMP data types", "omp_lock_t", "omp_nest_lock_t"]
78
dev_langs: ["C++"]
9+
helpviewer_keywords: ["OpenMP data types", "omp_lock_t OpenMP data type", "omp_nest_lock_t OpenMP data type"]
810
ms.assetid: cf1e1045-4d12-4d03-80b7-d5843b80ef85
911
author: "mikeblome"
1012
ms.author: "mblome"
@@ -16,11 +18,43 @@ Provides links to data types used in the OpenMP API.
1618

1719
The Visual C++ implementation of the OpenMP standard includes the following data types.
1820

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.|
21+
Data type | Description
22+
----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23+
[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.
2325

24-
## See Also
26+
## <a name="omp-lock-t"></a>omp_lock_t
2527

26-
[Library Reference](../../../parallel/openmp/reference/openmp-library-reference.md)
28+
A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.
29+
30+
The following functions use `omp_lock_t`:
31+
32+
- [omp_init_lock](../../../parallel/openmp/reference/omp-init-lock.md)
33+
- [omp_destroy_lock](../../../parallel/openmp/reference/omp-destroy-lock.md)
34+
- [omp_set_lock](../../../parallel/openmp/reference/omp-set-lock.md)
35+
- [omp_unset_lock](../../../parallel/openmp/reference/omp-unset-lock.md)
36+
- [omp_test_lock](../../../parallel/openmp/reference/omp-test-lock.md)
37+
38+
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+
## <a name="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.
47+
48+
The following functions use `omp_nest_lock_t`:
49+
50+
- [omp_init_nest_lock](../../../parallel/openmp/reference/omp-init-nest-lock.md)
51+
- [omp_destroy_nest_lock](../../../parallel/openmp/reference/omp-destroy-nest-lock.md)
52+
- [omp_set_nest_lock](../../../parallel/openmp/reference/omp-set-nest-lock.md)
53+
- [omp_unset_nest_lock](../../../parallel/openmp/reference/omp-unset-nest-lock.md)
54+
- [omp_test_nest_lock](../../../parallel/openmp/reference/omp-test-nest-lock.md)
55+
56+
For more information, see [3.2 Lock Functions](../../../parallel/openmp/3-2-lock-functions.md).
57+
58+
### Example
59+
60+
See [omp_init_nest_lock](../../../parallel/openmp/reference/omp-init-nest-lock.md) for an example of using `omp_nest_lock_t`.

0 commit comments

Comments
 (0)