rpcrt4: Force debug info in critical sections.
This commit is contained in:
parent
67bea281cc
commit
139d624787
4 changed files with 5 additions and 5 deletions
|
@ -72,7 +72,7 @@ static RPC_STATUS RpcAssoc_Alloc(LPCSTR Protseq, LPCSTR NetworkAddr,
|
||||||
assoc->refs = 1;
|
assoc->refs = 1;
|
||||||
list_init(&assoc->free_connection_pool);
|
list_init(&assoc->free_connection_pool);
|
||||||
list_init(&assoc->context_handle_list);
|
list_init(&assoc->context_handle_list);
|
||||||
InitializeCriticalSection(&assoc->cs);
|
InitializeCriticalSectionEx(&assoc->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
assoc->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcAssoc.cs");
|
assoc->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcAssoc.cs");
|
||||||
assoc->Protseq = strdup(Protseq);
|
assoc->Protseq = strdup(Protseq);
|
||||||
assoc->NetworkAddr = strdup(NetworkAddr);
|
assoc->NetworkAddr = strdup(NetworkAddr);
|
||||||
|
@ -463,7 +463,7 @@ RPC_STATUS RpcServerAssoc_AllocateContextHandle(RpcAssoc *assoc, void *CtxGuard,
|
||||||
return RPC_S_OUT_OF_MEMORY;
|
return RPC_S_OUT_OF_MEMORY;
|
||||||
|
|
||||||
context_handle->ctx_guard = CtxGuard;
|
context_handle->ctx_guard = CtxGuard;
|
||||||
InitializeCriticalSection(&context_handle->lock);
|
InitializeCriticalSectionEx(&context_handle->lock, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
context_handle->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcContextHandle.lock");
|
context_handle->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcContextHandle.lock");
|
||||||
context_handle->refs = 1;
|
context_handle->refs = 1;
|
||||||
|
|
||||||
|
|
|
@ -965,7 +965,7 @@ static RPC_STATUS alloc_serverprotoseq(UINT MaxCalls, const char *Protseq, RpcSe
|
||||||
(*ps)->ops = ops;
|
(*ps)->ops = ops;
|
||||||
list_init(&(*ps)->listeners);
|
list_init(&(*ps)->listeners);
|
||||||
list_init(&(*ps)->connections);
|
list_init(&(*ps)->connections);
|
||||||
InitializeCriticalSection(&(*ps)->cs);
|
InitializeCriticalSectionEx(&(*ps)->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
(*ps)->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcServerProtseq.cs");
|
(*ps)->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcServerProtseq.cs");
|
||||||
|
|
||||||
list_add_head(&protseqs, &(*ps)->entry);
|
list_add_head(&protseqs, &(*ps)->entry);
|
||||||
|
|
|
@ -1756,7 +1756,7 @@ static RpcConnection *rpcrt4_ncacn_http_alloc(void)
|
||||||
httpc->cancel_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
httpc->cancel_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
||||||
httpc->async_data->refs = 1;
|
httpc->async_data->refs = 1;
|
||||||
httpc->async_data->inet_buffers.dwStructSize = sizeof(INTERNET_BUFFERSW);
|
httpc->async_data->inet_buffers.dwStructSize = sizeof(INTERNET_BUFFERSW);
|
||||||
InitializeCriticalSection(&httpc->async_data->cs);
|
InitializeCriticalSectionEx(&httpc->async_data->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
httpc->async_data->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcHttpAsyncData.cs");
|
httpc->async_data->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcHttpAsyncData.cs");
|
||||||
return &httpc->common;
|
return &httpc->common;
|
||||||
}
|
}
|
||||||
|
|
|
@ -950,7 +950,7 @@ static struct threaddata *get_or_create_threaddata(void)
|
||||||
tdata = calloc(1, sizeof(*tdata));
|
tdata = calloc(1, sizeof(*tdata));
|
||||||
if (!tdata) return NULL;
|
if (!tdata) return NULL;
|
||||||
|
|
||||||
InitializeCriticalSection(&tdata->cs);
|
InitializeCriticalSectionEx(&tdata->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
tdata->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": threaddata.cs");
|
tdata->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": threaddata.cs");
|
||||||
tdata->thread_id = GetCurrentThreadId();
|
tdata->thread_id = GetCurrentThreadId();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue