Win32 CRITICAL_SECTION 包含哪些数据,有多大?
这是没有记录的,可能是特定于实现的,但我很想知道
最佳答案
这是我安装的 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;
关于winapi - Win32 CRITICAL_SECTION 包含什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2342025/