共用方式為


GetSchedulerId Function

Returns a unique identifier that can be assigned to a scheduler that implements the IScheduler interface.

unsigned int __cdecl GetSchedulerId();

Return Value

A unique identifier for a scheduler.

Remarks

Use this method to obtain an identifier for your scheduler before you pass an IScheduler interface as a parameter to any of the methods offered by the Resource Manager.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

concurrency Namespace