定义运行时线程存储信息的传输缓冲区。
Note
此 API 最初旨在供运行时内部使用。 尽管现在支持第三方使用,但我们建议尽量使用 ICorDebug 和 ICorProfiler 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 |
运行时托管标志(例如 CLRMEMORYHOSTED, CLRTASKHOSTED和 CLRHOSTED)的位掩码。 |
Request |
通过调用 ISOSDacInterface::GetThreadStoreData填充结构。 |
Remarks
此结构位于运行时内,不会通过任何标头或库文件公开。 若要使用它,请定义上面指定的结构。
要求
平台:请参阅系统要求。
页眉: 没有
图书馆: 没有
.NET Framework 版本:自 4.7 起可用