mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 16:31:45 +00:00
ole32: Add debug info to RunningObjectTable critical section.
So it's possible to easily debug deadlocks involving the Internal ROT object Signed-off-by: Lorenzo Ferrillo <lorenzofersteam@live.it>
This commit is contained in:
parent
7860dd0641
commit
516f68b64f
|
@ -707,10 +707,19 @@ static const IRunningObjectTableVtbl VT_RunningObjectTableImpl =
|
|||
RunningObjectTableImpl_EnumRunning
|
||||
};
|
||||
|
||||
static RunningObjectTableImpl rot;
|
||||
|
||||
static RTL_CRITICAL_SECTION_DEBUG critsect_debug =
|
||||
{
|
||||
0, 0, &rot.lock,
|
||||
{ &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
|
||||
0, 0, { (DWORD_PTR)(__FILE__ ": RunningObjectTable_section") }
|
||||
};
|
||||
|
||||
static RunningObjectTableImpl rot =
|
||||
{
|
||||
.IRunningObjectTable_iface.lpVtbl = &VT_RunningObjectTableImpl,
|
||||
.lock.LockCount = -1,
|
||||
.lock = { &critsect_debug, -1, 0, 0, 0, 0 },
|
||||
.rot = LIST_INIT(rot.rot),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue