![]() |
C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
The _PPLTaskHandle is the strong-typed task handle base. All user task functions need to be wrapped in this task handler to be executable by PPL. By deriving from a different _BaseTaskHandle, it can be used for both initial tasks and continuation tasks. For initial tasks, _PPLTaskHandle will be derived from _UnrealizedChore_t, and for continuation tasks, it will be derived from _ContinuationTaskHandleBase. The life time of the _PPLTaskHandle object is be managed by runtime if task handle is scheduled. More...
#include <pplxtasks.h>
Public Member Functions | |
| _PPLTaskHandle (const typename _Task_ptr< _ReturnType >::_Type &_PTask) | |
| virtual void | invoke () const |
| _Task_ptr_base | _GetTaskImplBase () const |
Public Attributes | |
| _Task_ptr< _ReturnType >::_Type | _M_pTask |
The _PPLTaskHandle is the strong-typed task handle base. All user task functions need to be wrapped in this task handler to be executable by PPL. By deriving from a different _BaseTaskHandle, it can be used for both initial tasks and continuation tasks. For initial tasks, _PPLTaskHandle will be derived from _UnrealizedChore_t, and for continuation tasks, it will be derived from _ContinuationTaskHandleBase. The life time of the _PPLTaskHandle object is be managed by runtime if task handle is scheduled.
| _ReturnType | The result type of the _Task_impl. |
| _DerivedTaskHandle | The derived task handle class. The operator () needs to be implemented. |
| _BaseTaskHandle | The base class from which _PPLTaskHandle should be derived. This is either _UnrealizedChore_t or _ContinuationTaskHandleBase. |
1.8.10