From a559179a5cbf6fe8157cb1bc1e97a95e14347b42 Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Mon, 18 Oct 2021 19:34:32 +0300 Subject: [PATCH] Fixed task_options(cancellation_token, task_continuation_context) constructor - should set _M_HasCancellationToken. Bug was introduced in PPL in VS2013 and fixed in VS2015 but survives in PPLX --- Release/include/pplx/pplxtasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Release/include/pplx/pplxtasks.h b/Release/include/pplx/pplxtasks.h index 6868fc1619..f258fb6ca9 100644 --- a/Release/include/pplx/pplxtasks.h +++ b/Release/include/pplx/pplxtasks.h @@ -1270,7 +1270,7 @@ class task_options : _M_Scheduler(get_ambient_scheduler()) , _M_CancellationToken(_Token) , _M_ContinuationContext(_ContinuationContext) - , _M_HasCancellationToken(false) + , _M_HasCancellationToken(true) , _M_HasScheduler(false) { }