Skip to content

Commit f5f7c05

Browse files
authored
Update CComMultiThreadModel class reference
1 parent 7bbc129 commit f5f7c05

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/atl/reference/ccommultithreadmodel-class.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["ATL, multithreading", "CComMultiThreadModel class", "thre
1111

1212
## Syntax
1313

14-
```
14+
```cpp
1515
class CComMultiThreadModel
1616
```
1717
@@ -53,7 +53,7 @@ S= `CComSingleThreadModel`; M= `CComMultiThreadModel`
5353
5454
When using `CComMultiThreadModel`, the **`typedef`** name `AutoCriticalSection` references class [CComAutoCriticalSection](ccomautocriticalsection-class.md), which provides methods for obtaining and releasing ownership of a critical section object.
5555
56-
```
56+
```cpp
5757
typedef CComAutoCriticalSection AutoCriticalSection;
5858
```
5959

@@ -119,7 +119,7 @@ The following tables show the results of the `InternalAddRef` and `Lock` methods
119119
120120
When using `CComMultiThreadModel`, the **`typedef`** name `CriticalSection` references class [CComCriticalSection](ccomcriticalsection-class.md), which provides methods for obtaining and releasing ownership of a critical section object.
121121
122-
```
122+
```cpp
123123
typedef CComCriticalSection CriticalSection;
124124
```
125125

@@ -143,13 +143,13 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
143143

144144
This static function calls the Win32 function [InterlockedDecrement](/windows/win32/api/winnt/nf-winnt-interlockeddecrement), which decrements the value of the variable pointed to by *p*.
145145

146-
```
146+
```cpp
147147
static ULONG WINAPI Decrement(LPLONG p) throw ();
148148
```
149149
150150
### Parameters
151151
152-
*p*<br/>
152+
*p*\
153153
[in] Pointer to the variable to be decremented.
154154
155155
### Return Value
@@ -164,13 +164,13 @@ If the result of the decrement is 0, then `Decrement` returns 0. If the result o
164164
165165
This static function calls the Win32 function [InterlockedIncrement](/windows/win32/api/winnt/nf-winnt-interlockedincrement), which increments the value of the variable pointed to by *p*.
166166
167-
```
167+
```cpp
168168
static ULONG WINAPI Increment(LPLONG p) throw ();
169169
```
170170

171171
### Parameters
172172

173-
*p*<br/>
173+
*p*\
174174
[in] Pointer to the variable to be incremented.
175175

176176
### Return Value
@@ -185,7 +185,7 @@ If the result of the increment is 0, then `Increment` returns 0. If the result o
185185

186186
When using `CComMultiThreadModel`, the **`typedef`** name `ThreadModelNoCS` references class [CComMultiThreadModelNoCS](ccommultithreadmodelnocs-class.md).
187187

188-
```
188+
```cpp
189189
typedef CComMultiThreadModelNoCS ThreadModelNoCS;
190190
```
191191

@@ -207,7 +207,7 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
207207

208208
## See also
209209

210-
[CComSingleThreadModel Class](ccomsinglethreadmodel-class.md)<br/>
211-
[CComAutoCriticalSection Class](ccomautocriticalsection-class.md)<br/>
212-
[CComCriticalSection Class](ccomcriticalsection-class.md)<br/>
210+
[CComSingleThreadModel Class](ccomsinglethreadmodel-class.md)\
211+
[CComAutoCriticalSection Class](ccomautocriticalsection-class.md)\
212+
[CComCriticalSection Class](ccomcriticalsection-class.md)\
213213
[Class Overview](../atl-class-overview.md)

0 commit comments

Comments
 (0)