WinDbg에서 CRITICAL_SECTION 구조체 내용을 확인하는 방법과 각 멤버변수들의 의미에 대한 글
http://msdn.microsoft.com/en-us/library/windows/hardware/ff541979(v=vs.85).aspx
In Microsoft Windows 2000, and Windows XP, the LockCount field indicates the number of times that any thread has called the EnterCriticalSection routine for this critical section, minus one. This field starts at -1 for an unlocked critical section. Each call of EnterCriticalSection increments this value; each call of LeaveCriticalSection decrements it. For example, if LockCount is 5, this critical section is locked, one thread has acquired it, and five additional threads are waiting for this lock.
The RecursionCount field indicates the number of times that the owning thread has called EnterCriticalSection for this critical section.
The EntryCount field indicates the number of times that a thread other than the owning thread has calledEnterCriticalSection for this critical section.
'Scrap > Debug' 카테고리의 다른 글
mixed code의 stack trace하기 (0) | 2016.12.20 |
---|---|
Unwind Data for Exception Handling, Debugger Support (0) | 2015.08.01 |
Hard Link, Junction, Symbolic Link의 차이점 (0) | 2014.12.04 |
Debugging Managed Code Using the Windows Debugger (0) | 2014.08.27 |
How Try/Catch/Throw are Interpreted by the Microsoft Compiler (try~catch 내부 구현에 관한 글) (0) | 2014.08.06 |