Skip to content

Commit 0888409

Browse files
committed
fix linux build break 1
1 parent 1255556 commit 0888409

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Release/include/http_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class http_client
258258
/// <param name="handler">A function object representing the pipeline stage.</param>
259259
void add_handler(std::function<pplx::task<http_response>(http_request, std::shared_ptr<http::http_pipeline_stage>)> handler)
260260
{
261-
m_pipeline->append(std::make_shared<::web::http::details::function_pipeline_wrapper>(handler));
261+
m_pipeline->append(std::make_shared< ::web::http::details::function_pipeline_wrapper>(handler));
262262
}
263263

264264
/// <summary>
@@ -388,7 +388,7 @@ class http_client
388388

389389
void build_pipeline(const uri &base_uri, const http_client_config& client_config);
390390

391-
std::shared_ptr<::web::http::http_pipeline> m_pipeline;
391+
std::shared_ptr< ::web::http::http_pipeline> m_pipeline;
392392
};
393393

394394
} // namespace client

Release/include/pplxcancellation_token.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace details
6262
// Returns the new reference count.
6363
long _Reference()
6464
{
65-
long _Refcount = _InterlockedIncrement(&_M_refCount);
65+
long _Refcount = atomic_increment(_M_refCount);
6666

6767
// 0 - 1 transition is illegal
6868
_ASSERTE(_Refcount > 1);
@@ -73,7 +73,7 @@ namespace details
7373
// Returns the new reference count
7474
long _Release()
7575
{
76-
long _Refcount = _InterlockedDecrement(&_M_refCount);
76+
long _Refcount = atomic_decrement(_M_refCount);
7777
_ASSERTE(_Refcount >= 0);
7878

7979
if (_Refcount == 0)
@@ -99,7 +99,7 @@ namespace details
9999
}
100100

101101
// Reference count
102-
volatile long _M_refCount;
102+
atomic_long _M_refCount;
103103
};
104104

105105
class _CancellationTokenState;
@@ -319,7 +319,7 @@ namespace details
319319

320320
public:
321321

322-
static _CancellationTokenState * _CancellationTokenState::_NewTokenState()
322+
static _CancellationTokenState * _NewTokenState()
323323
{
324324
return new _CancellationTokenState();
325325
}
@@ -607,6 +607,7 @@ class cancellation_token_registration
607607
};
608608

609609

610+
class invalid_operation;
610611
/// <summary>
611612
/// The <c>cancellation_token</c> class represents the ability to determine whether some operation has been requested to cancel. A given token can
612613
/// be associated with a <c>task_group</c>, <c>structured_task_group</c>, or <c>task</c> to provide implicit cancellation. It can also be polled for

Release/include/pplxlinux.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ namespace platform
251251

252252
~timer_impl();
253253

254-
_PPLXIMP void start(unsigned int ms, bool repeat, TaskProc userFunc, _In_ void * context);
254+
_PPLXIMP void start(unsigned int ms, bool repeat, TaskProc_t userFunc, _In_ void * context);
255255
_PPLXIMP void stop(bool waitForCallbacks);
256256

257257
private:
@@ -261,7 +261,7 @@ namespace platform
261261
class linux_scheduler : public pplx::scheduler_interface
262262
{
263263
public:
264-
_PPLXIMP virtual void schedule( TaskProc proc, _In_ void* param);
264+
_PPLXIMP virtual void schedule( TaskProc_t proc, _In_ void* param);
265265
};
266266

267267
/// <summary>
@@ -306,7 +306,7 @@ namespace extensibility
306306

307307
typedef ::pplx::details::reader_writer_lock_impl reader_writer_lock_t;
308308
typedef scoped_lock<reader_writer_lock_t> scoped_rw_lock_t;
309-
typedef ::pplx::reader_writer_lock::scoped_lock_read scoped_read_lock_t;
309+
typedef ::pplx::extensibility::reader_writer_lock_t::scoped_lock_read scoped_read_lock_t;
310310

311311
typedef ::pplx::details::recursive_lock_impl recursive_lock_t;
312312
typedef scoped_lock<recursive_lock_t> scoped_recursive_lock_t;

Release/include/pplxtasks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ namespace details
847847

848848
// Specializations to avoid marshaling for strings and arrays.
849849
template<typename _Type>
850-
struct _MarshalHelper<::Platform::Array<_Type^>>
850+
struct _MarshalHelper< ::Platform::Array<_Type^>>
851851
{
852852
static ::Platform::Array<_Type^>^ _Perform(::Platform::Array<_Type^>^& _ObjInCtx, const _ContextCallback& _Ctx)
853853
{
@@ -856,7 +856,7 @@ namespace details
856856
};
857857

858858
template<>
859-
struct _MarshalHelper<::Platform::String>
859+
struct _MarshalHelper< ::Platform::String>
860860
{
861861
static ::Platform::String^ _Perform(::Platform::String^& _ObjInCtx, const _ContextCallback& _Ctx)
862862
{

0 commit comments

Comments
 (0)