Condividi tramite


CurrentScheduler::Id Method

Returns a unique identifier for the current scheduler.

static unsigned int __cdecl Id();

Return Value

If a scheduler is associated with the calling context, a unique identifier for that scheduler; otherwise, the value -1.

Remarks

This method will not result in scheduler attachment if the calling context is not already associated with a scheduler.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

CurrentScheduler Class