ntdll: Force debug info in critical sections.
This commit is contained in:
parent
7c2f6be10e
commit
27e70ba8ec
3 changed files with 4 additions and 4 deletions
|
@ -1548,7 +1548,7 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, void *addr, SIZE_T total_size, SIZE_T
|
|||
}
|
||||
else
|
||||
{
|
||||
RtlInitializeCriticalSection( &heap->cs );
|
||||
RtlInitializeCriticalSectionEx( &heap->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
|
||||
heap->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": heap.cs");
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ void WINAPI RtlInitializeResource(LPRTL_RWLOCK rwl)
|
|||
rwl->uSharedWaiters = 0;
|
||||
rwl->hOwningThreadId = 0;
|
||||
rwl->dwTimeoutBoost = 0; /* no info on this one, default value is 0 */
|
||||
RtlInitializeCriticalSection( &rwl->rtlCS );
|
||||
RtlInitializeCriticalSectionEx( &rwl->rtlCS, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
|
||||
rwl->rtlCS.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RTL_RWLOCK.rtlCS");
|
||||
NtCreateSemaphore( &rwl->hExclusiveReleaseSemaphore, SEMAPHORE_ALL_ACCESS, NULL, 0, 65535 );
|
||||
NtCreateSemaphore( &rwl->hSharedReleaseSemaphore, SEMAPHORE_ALL_ACCESS, NULL, 0, 65535 );
|
||||
|
|
|
@ -1675,7 +1675,7 @@ static NTSTATUS tp_threadpool_alloc( struct threadpool **out )
|
|||
pool->objcount = 0;
|
||||
pool->shutdown = FALSE;
|
||||
|
||||
RtlInitializeCriticalSection( &pool->cs );
|
||||
RtlInitializeCriticalSectionEx( &pool->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
|
||||
pool->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": threadpool.cs");
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(pool->pools); ++i)
|
||||
|
@ -1839,7 +1839,7 @@ static NTSTATUS tp_group_alloc( struct threadpool_group **out )
|
|||
group->refcount = 1;
|
||||
group->shutdown = FALSE;
|
||||
|
||||
RtlInitializeCriticalSection( &group->cs );
|
||||
RtlInitializeCriticalSectionEx( &group->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO );
|
||||
group->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": threadpool_group.cs");
|
||||
|
||||
list_init( &group->members );
|
||||
|
|
Loading…
Add table
Reference in a new issue