Share via


Scheduler::ScheduleTask Method

Schedules a light-weight task within the scheduler. The light-weight task will be placed in a schedule group of the runtime's choosing.

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.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

Scheduler Class

ScheduleGroup Class

Concepts

Task Scheduler (Concurrency Runtime)