Commit 516f68b6 authored by Lorenzo Ferrillo's avatar Lorenzo Ferrillo Committed by Alexandre Julliard

ole32: Add debug info to RunningObjectTable critical section.

So it's possible to easily debug deadlocks involving the Internal ROT object Signed-off-by: 's avatarLorenzo Ferrillo <lorenzofersteam@live.it>
parent 7860dd06
...@@ -707,10 +707,19 @@ static const IRunningObjectTableVtbl VT_RunningObjectTableImpl = ...@@ -707,10 +707,19 @@ static const IRunningObjectTableVtbl VT_RunningObjectTableImpl =
RunningObjectTableImpl_EnumRunning 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 = static RunningObjectTableImpl rot =
{ {
.IRunningObjectTable_iface.lpVtbl = &VT_RunningObjectTableImpl, .IRunningObjectTable_iface.lpVtbl = &VT_RunningObjectTableImpl,
.lock.LockCount = -1, .lock = { &critsect_debug, -1, 0, 0, 0, 0 },
.rot = LIST_INIT(rot.rot), .rot = LIST_INIT(rot.rot),
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment