Context::GetScheduleGroupId Method

Returns an identifier for the schedule group that the context is currently working on.

virtual unsigned int GetScheduleGroupId() const =0;

Return Value

An identifier for the schedule group the context is currently working on.

Remarks

The return value from this method is an instantaneous sampling of the schedule group that the context is executing on. If this method is called on a context other than the current context, the value may be stale the moment it is returned and cannot be relied upon. Typically, this method is used for debugging or tracing purposes only.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

Context Class

ScheduleGroup Class