다음을 통해 공유


ScheduleGroup::ScheduleTask Method

Schedules a light-weight task within the schedule group.

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

Parameters

  • _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.

Remarks

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.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

ScheduleGroup Class

ScheduleGroup::Reference Method