Udostępnij za pośrednictwem


ScheduleGroup::ScheduleTask Method

Schedules a light-weight task within the schedule group.

virtual void ScheduleTask(
   TaskProc _Proc,
   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