DacpThreadStoreData 結構

定義執行執行時執行緒儲存資訊的傳輸緩衝區。

Note

此 API 原本是針對運行時間內部使用所設計。 雖然現在支援第三方使用,但建議您盡可能使用 ICorDebugICorProfiler API。

Syntax

struct DacpThreadStoreData : ZeroInit<DacpThreadStoreData>
{
    LONG threadCount;
    LONG unstartedThreadCount;
    LONG backgroundThreadCount;
    LONG pendingThreadCount;
    LONG deadThreadCount;
    CLRDATA_ADDRESS firstThread;
    CLRDATA_ADDRESS finalizerThread;
    CLRDATA_ADDRESS gcThread;
    DWORD fHostConfig;          // Uses hosting flags defined above
 
    HRESULT Request(ISOSDacInterface *sos)
    {
        return sos->GetThreadStoreData(this);
    }
};

Members

會員 說明
threadCount 執行執行緒的總數。
unstartedThreadCount 還有幾串串沒開始。
backgroundThreadCount 背景線的數量。
pendingThreadCount 待處理的討論串數量。
deadThreadCount 死線的數量。
firstThread 執行執行緒清單中第一個執行緒的位址。
finalizerThread 結算者討論串的地址。
gcThread 垃圾回收串的網址。
fHostConfig 一個由執行時主機標誌組成的位元遮罩,例如 CLRMEMORYHOSTEDCLRTASKHOSTEDCLRHOSTED和 。
Request 透過呼叫 ISOSDacInterface::GetThreadStoreData來填充結構。

Remarks

此結構位於運行時間內,不會透過任何標頭或庫檔案公開。 使用時,請依上述定義結構。

要求

平台:請參閱系統需求
標題:
圖書館:
.NET Framework 版本:自 4.7 版本起可用

也請參閱