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
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.
@@ -119,7 +119,7 @@ The following tables show the results of the `InternalAddRef` and `Lock` methods
119
119
120
120
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.
121
121
122
-
```
122
+
```cpp
123
123
typedef CComCriticalSection CriticalSection;
124
124
```
125
125
@@ -143,13 +143,13 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
143
143
144
144
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*.
145
145
146
-
```
146
+
```cpp
147
147
static ULONG WINAPI Decrement(LPLONG p) throw ();
148
148
```
149
149
150
150
### Parameters
151
151
152
-
*p*<br/>
152
+
*p*\
153
153
[in] Pointer to the variable to be decremented.
154
154
155
155
### Return Value
@@ -164,13 +164,13 @@ If the result of the decrement is 0, then `Decrement` returns 0. If the result o
164
164
165
165
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*.
166
166
167
-
```
167
+
```cpp
168
168
static ULONG WINAPI Increment(LPLONG p) throw ();
169
169
```
170
170
171
171
### Parameters
172
172
173
-
*p*<br/>
173
+
*p*\
174
174
[in] Pointer to the variable to be incremented.
175
175
176
176
### Return Value
@@ -185,7 +185,7 @@ If the result of the increment is 0, then `Increment` returns 0. If the result o
185
185
186
186
When using `CComMultiThreadModel`, the **`typedef`** name `ThreadModelNoCS` references class [CComMultiThreadModelNoCS](ccommultithreadmodelnocs-class.md).
187
187
188
-
```
188
+
```cpp
189
189
typedef CComMultiThreadModelNoCS ThreadModelNoCS;
190
190
```
191
191
@@ -207,7 +207,7 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
0 commit comments