29 namespace extensibility
80 #ifndef _REPORT_PPLTASK_UNOBSERVED_EXCEPTION
81 #define _REPORT_PPLTASK_UNOBSERVED_EXCEPTION() do { \
82 ReportUnhandledError(); \
84 Concurrency::details::_ReportUnobservedException(); \
101 this->
m_pFunction = &Concurrency::details::_UnrealizedChore::_InvokeBridge<_TaskProcHandle>;
106 virtual void invoke()
const = 0;
117 _PTaskHandle->invoke();
294 #endif // _PPLCONCRT_H
_T * _Ptr
Definition: pplconcrt.h:94
bool _ShouldInline(_TaskInliningMode _InliningMode) const
Definition: concrt.h:5298
_AsyncTaskCollection * _M_pTaskCollection
Definition: pplconcrt.h:266
::Concurrency::details::_ReentrantBlockingLock recursive_lock_t
Definition: pplconcrt.h:40
This class describes an exception thrown when an invalid operation is performed that is not more accu...
Definition: concrt.h:1705
::Concurrency::details::_TaskInliningMode _TaskInliningMode_t
Definition: pplconcrt.h:286
~_AutoDeleter()
Definition: pplconcrt.h:93
_CRTIMP size_t wait(unsigned int _Timeout=COOPERATIVE_TIMEOUT_INFINITE)
Waits for the event to become signaled.
Async Task collections is a thin wrapper over task collection to cater to the execution of asynchrono...
Definition: concrt.h:5321
static _CRTIMP void __cdecl _ScheduleTask(TaskProc _Proc, void *_Data)
Concurrency::details::_TaskProcHandle _TaskProcHandle_t
Definition: pplconcrt.h:133
#define _CRTIMP
Definition: crtdefs.h:23
TaskProc m_pFunction
Definition: concrt.h:4313
Definition: concrt.h:5277
_TaskCollectionImpl(::Concurrency::scheduler_ptr _PScheduler)
Definition: pplconcrt.h:135
_TaskCollectionStatus _RunAndWait()
A cancellation friendly wrapper with which to execute _PChore and then waits for all chores running i...
Definition: concrt.h:5399
Definition: pplconcrt.h:272
void(__cdecl * TaskProc)(void *)
Concurrency::details contains definitions of support routines in the public namespaces and one or mor...
Definition: concrt.h:265
RAII wrapper used to maintain and limit ppltask maximum inline schedule depth. This class will keep a...
Definition: concrt.h:5284
::Concurrency::details::_Task_generator_oversubscriber _Task_generator_oversubscriber_t
Definition: pplconcrt.h:287
_TaskCollectionStatus _ScheduleWithAutoInline(_UnrealizedChore *_PChore, _TaskInliningMode _InliningMode)
Schedule a chore with automatic inlining. The chore is pushed onto the associated workstealing queue...
Definition: concrt.h:5353
_TaskProcHandle()
Definition: pplconcrt.h:99
_CRTIMP2 bool __cdecl is_current_task_group_canceling()
Returns an indication of whether the task group which is currently executing inline on the current co...
Definition: pplconcrt.h:97
The Concurrency namespace provides classes and functions that provide access to the Concurrency Runti...
Definition: agents.h:42
::Concurrency::event event_t
Definition: pplconcrt.h:31
::Concurrency::reader_writer_lock reader_writer_lock_t
Definition: pplconcrt.h:36
~_TaskCollectionImpl()
Definition: pplconcrt.h:140
void _SetRuntimeOwnsLifetime(bool fValue)
Definition: concrt.h:4347
recursive_lock_t::_Scoped_lock scoped_recursive_lock_t
Definition: pplconcrt.h:41
_Task_generator_oversubscriber()
Definition: pplconcrt.h:274
~_Task_generator_oversubscriber()
Definition: pplconcrt.h:279
::Concurrency::scheduler_ptr _M_pScheduler
Definition: pplconcrt.h:267
_CRTIMP void set()
Signals the event.
_TaskInliningMode
The enum defines inlining scheduling policy for ppltasks. Scheduling a chore or a functor with _TaskI...
Definition: concrt.h:5270
::Concurrency::reader_writer_lock::scoped_lock_read scoped_read_lock_t
Definition: pplconcrt.h:38
static _CancellationTokenState * _None()
Definition: pplcancellation_token.h:328
static void _RunTask(TaskProc _Proc, void *_Parameter, _TaskInliningMode _InliningMode)
Definition: pplconcrt.h:237
void _RunAndWait()
Definition: pplconcrt.h:202
void set_ambient_scheduler(std::shared_ptr< ::Concurrency::scheduler_interface > _Scheduler)
Definition: pplconcrt.h:69
Definition: pplconcrt.h:129
::Concurrency::critical_section critical_section_t
Definition: pplconcrt.h:33
Definition: concrt.h:4319
static bool __cdecl _Is_cancellation_requested()
Definition: pplconcrt.h:252
Represents a pointer to a scheduler. This class exists to allow the the specification of a shared lif...
Definition: pplinterface.h:58
void _Complete()
Definition: pplconcrt.h:224
virtual void invoke() const =0
static _CRTIMP _AsyncTaskCollection *__cdecl _NewCollection(_CancellationTokenState *_PTokenState)
Constructs a new task collection whose cancellation is governed by the specified cancellation token s...
void _ScheduleTask(_TaskProcHandle_t *_Parameter, _TaskInliningMode _InliningMode)
Definition: pplconcrt.h:149
::Concurrency::extensibility::event_t _M_Completed
Definition: pplconcrt.h:265
static _CRTIMP void __cdecl _Oversubscribe(bool _BeginOversubscription)
void _Cancel()
Cancels work on the task collection.
Definition: concrt.h:5381
#define _T(x)
Definition: tchar.h:2498
Definition: pplconcrt.h:90
::Concurrency::extensibility::event_t _M_Scheduled
Definition: pplconcrt.h:264
::Concurrency::reader_writer_lock::scoped_lock scoped_rw_lock_t
Definition: pplconcrt.h:37
#define _CRTIMP2
Definition: crtdefs.h:126
_AutoDeleter(_T *_PPtr)
Definition: pplconcrt.h:92
long _Release()
Definition: concrt.h:4180
::Concurrency::details::_TaskCollectionImpl _TaskCollection_t
Definition: pplconcrt.h:285
A manual reset event which is explicitly aware of the Concurrency Runtime.
Definition: concrt.h:3982
critical_section_t::scoped_lock scoped_critical_section_t
Definition: pplconcrt.h:34
::Concurrency::scheduler_ptr _GetScheduler() const
Definition: pplconcrt.h:231
An exception safe RAII wrapper for a critical_section object.
Definition: concrt.h:3661
virtual ~_TaskProcHandle()
Definition: pplconcrt.h:105
std::shared_ptr< ::Concurrency::scheduler_interface > get_ambient_scheduler()
Definition: pplconcrt.h:64
void _SetScheduled()
Definition: pplconcrt.h:259
void _Cancel()
Definition: pplconcrt.h:191
void _Wait()
Definition: pplconcrt.h:219
void operator()() const
Definition: pplconcrt.h:108
static void __cdecl _RunChoreBridge(void *_Parameter)
Definition: pplconcrt.h:113