ScheduleGroup::ScheduleTask Method

Schedules a light-weight task within the schedule group.

virtual void ScheduleTask(
   TaskProc _Proc,
   _Inout_opt_ void * _Data
) =0;

_Proc

A pointer to the function to execute to perform the body of the light-weight task.

_Data

A void pointer to the data that will be passed as a parameter to the body of the task.

Calling the ScheduleTask method implicitly places a reference count on the schedule group which is removed by the runtime at an appropriate time after the task executes.

Header: concrt.h

Namespace: concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft