Skip to content

Commit b40d2e2

Browse files
author
Colin Robertson
committed
Simplify Multithreading with C and Win32
1 parent 51262de commit b40d2e2

15 files changed

+249
-327
lines changed

docs/build/reference/compiler-options-listed-alphabetically.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Compiler Options Listed Alphabetically"
3-
ms.date: "05/06/2019"
3+
ms.date: "08/08/2019"
44
helpviewer_keywords: ["compiler options, C++"]
55
---
66
# Compiler Options Listed Alphabetically
@@ -93,7 +93,7 @@ The following is a comprehensive alphabetical list of compiler options. For a ca
9393
|[/openmp](openmp-enable-openmp-2-0-support.md)|Enables the [`#pragma omp`](../../preprocessor/omp.md) directive in source code.|
9494
|[/Os](os-ot-favor-small-code-favor-fast-code.md)|Favors small code.|
9595
|[/Ot](os-ot-favor-small-code-favor-fast-code.md)|Favors fast code.|
96-
|[/Ox](ox-full-optimization.md)|Uses maximum optimization (/Ob2gity /Gs).|
96+
|[/Ox](ox-full-optimization.md)|A subset of /O2 that doesn't include /GF or /Gy.|
9797
|[/Oy](oy-frame-pointer-omission.md)|Omits frame pointer (x86 only).|
9898
|[/P](p-preprocess-to-a-file.md)|Writes preprocessor output to a file.|
9999
|[/permissive-](permissive-standards-conformance.md)|Set standard-conformance mode.|

docs/build/reference/compiler-options-listed-by-category.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Compiler Options Listed by Category"
3-
ms.date: "05/06/2019"
3+
ms.date: "08/08/2019"
44
helpviewer_keywords: ["compiler options, C++"]
55
ms.assetid: c4750dcf-dba0-4229-99b6-45cdecc11729
66
---
@@ -20,7 +20,7 @@ This article contains a categorical list of compiler options. For an alphabetica
2020
|[/Oi](oi-generate-intrinsic-functions.md)|Generates intrinsic functions.|
2121
|[/Os](os-ot-favor-small-code-favor-fast-code.md)|Favors small code.|
2222
|[/Ot](os-ot-favor-small-code-favor-fast-code.md)|Favors fast code.|
23-
|[/Ox](ox-full-optimization.md)|Uses maximum optimization (/Ob2gity /Gs).|
23+
|[/Ox](ox-full-optimization.md)|A subset of /O2 that doesn't include /GF or /Gy.|
2424
|[/Oy](oy-frame-pointer-omission.md)|Omits frame pointer. (x86 only)|
2525
|[/favor](favor-optimize-for-architecture-specifics.md)|Produces code that is optimized for a specified architecture, or for a range of architectures.|
2626

docs/intrinsics/interlockedcompareexchange-intrinsic-functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ These routines are only available as intrinsics.
170170

171171
## Example
172172

173-
In the following example, `_InterlockedCompareExchange` is used for simple low-level thread synchronization. The approach has its limitations as a basis for multithreaded programming; it's presented to illustrate the typical use of the interlocked intrinsics. For best results, use the Windows API. For more information about multithreaded programming, see [Writing a Multithreaded Win32 Program](../parallel/writing-a-multithreaded-win32-program.md).
173+
In the following example, `_InterlockedCompareExchange` is used for simple low-level thread synchronization. The approach has its limitations as a basis for multithreaded programming; it's presented to illustrate the typical use of the interlocked intrinsics. For best results, use the Windows API. For more information about multithreaded programming, see [Writing a Multithreaded Win32 Program](../parallel/multithreading-with-c-and-win32.md#writing-a-multithreaded-win32-program).
174174

175-
```
175+
```cpp
176176
// intrinExample.cpp
177177
// compile with: /EHsc /O2
178178
// Simple example of using _Interlocked* intrinsics to

docs/parallel/avoiding-problem-areas-with-multithread-programs.md

-18
This file was deleted.

docs/parallel/c-run-time-library-functions-for-thread-control.md

-36
This file was deleted.

docs/parallel/compiling-and-linking-multithread-programs.md

-35
This file was deleted.

docs/parallel/include-files-for-multithreading.md

-13
This file was deleted.

docs/parallel/library-support-for-multithreading.md

-15
This file was deleted.

docs/parallel/multithread-programs.md

-17
This file was deleted.

0 commit comments

Comments
 (0)