Win32 CRITICAL_SECTION 包含什么? [英] What does the Win32 CRITICAL_SECTION contain?
本文介绍了Win32 CRITICAL_SECTION 包含什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Win32 CRITICAL_SECTION 包含哪些数据,有多大?
What data does the Win32 CRITICAL_SECTION contain, and how big is it?
这是无证的,大概是实现特定的,但我很想知道
This is undocumented and presumably implementation specific, but I'm curious to know
推荐答案
这是我安装的 Windows Vista SDK:
This is from my installation of Windows Vista SDK:
WinNT.h:
typedef struct _RTL_CRITICAL_SECTION {
PRTL_CRITICAL_SECTION_DEBUG DebugInfo;
//
// The following three fields control entering and exiting the critical
// section for the resource
//
LONG LockCount;
LONG RecursionCount;
HANDLE OwningThread; // from the thread's ClientId->UniqueThread
HANDLE LockSemaphore;
ULONG_PTR SpinCount; // force size on 64-bit systems when packed
} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
WinBase.h:
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
这篇关于Win32 CRITICAL_SECTION 包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文