File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
tests/Functional/http/listener Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ namespace details
149
149
// Returns the new reference count.
150
150
long _Reference ()
151
151
{
152
- long _Refcount = _InterlockedIncrement (& _M_refCount);
152
+ long _Refcount = atomic_increment ( _M_refCount);
153
153
154
154
// 0 - 1 transition is illegal
155
155
_ASSERTE (_Refcount > 1 );
@@ -160,7 +160,7 @@ namespace details
160
160
// Returns the new reference count
161
161
long _Release ()
162
162
{
163
- long _Refcount = _InterlockedDecrement (& _M_refCount);
163
+ long _Refcount = atomic_decrement ( _M_refCount);
164
164
_ASSERTE (_Refcount >= 0 );
165
165
166
166
if (_Refcount == 0 )
@@ -186,7 +186,7 @@ namespace details
186
186
}
187
187
188
188
// Reference count
189
- volatile long _M_refCount;
189
+ atomic_long _M_refCount;
190
190
};
191
191
192
192
class _CancellationTokenState ;
@@ -413,7 +413,7 @@ namespace details
413
413
414
414
public:
415
415
416
- static _CancellationTokenState * _CancellationTokenState:: _NewTokenState ()
416
+ static _CancellationTokenState * _NewTokenState ()
417
417
{
418
418
return new _CancellationTokenState ();
419
419
}
Original file line number Diff line number Diff line change @@ -2505,7 +2505,7 @@ namespace details
2505
2505
{
2506
2506
::pplx::extensibility::scoped_critical_section_t _LockHolder (_M_ContinuationsCritSec);
2507
2507
// Canceled state could only result from antecedent task's canceled state, but that code path will not reach here.
2508
- _ASSERT (!_IsCanceled ());
2508
+ _ASSERTE (!_IsCanceled ());
2509
2509
if (_IsPendingCancel ())
2510
2510
return false ;
2511
2511
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ OUTPUT_DIR?=./$(MODE)
6
6
7
7
$(OUTPUT_DIR ) /httplistener_test.so : \
8
8
building_response_tests.cpp \
9
- connection_tests .cpp \
9
+ connections_and_errors .cpp \
10
10
header_tests.cpp \
11
11
listener_construction_tests.cpp \
12
12
pipeline_stage_tests.cpp \
Original file line number Diff line number Diff line change 15
15
16
16
#include " stdafx.h"
17
17
18
- #include < cpprest\ http_client.h>
18
+ #include < cpprest/ http_client.h>
19
19
20
20
using namespace utility ;
21
21
using namespace web ;
You can’t perform that action at this time.
0 commit comments