共用方式為


CurrentScheduler::Id 方法

傳回目前排程器的唯一識別碼。

static unsigned int __cdecl Id();

傳回值

如果排程器與呼叫內容相關,則為該排程器的唯一識別碼,否則即為 -1 值。

備註

如果呼叫內容尚未與排程器相關聯,這個方法不會造成排程器附加。

需求

標頭: concrt.h

Namespace: 並行存取

請參閱

參考

CurrentScheduler 類別