[CSRSRV]: Port CsrLockedReferenceThread from CSRSRV2.

svn path=/trunk/; revision=55704
This commit is contained in:
Alex Ionescu 2012-02-19 09:57:00 +00:00
parent 131b6d2ea6
commit f34ec165f6
2 changed files with 26 additions and 0 deletions

View file

@ -122,6 +122,28 @@ CsrAllocateThread(IN PCSR_PROCESS CsrProcess)
return CsrThread;
}
/*++
* @name CsrLockedReferenceThread
*
* The CsrLockedReferenceThread refences a CSR Thread while the
* Process Lock is already being held.
*
* @param CsrThread
* Pointer to the CSR Thread to be referenced.
*
* @return None.
*
* @remarks This routine will return with the Process Lock held.
*
*--*/
VOID
NTAPI
CsrLockedReferenceThread(IN PCSR_THREAD CsrThread)
{
/* Increment the reference count */
++CsrThread->ReferenceCount;
}
PCSR_THREAD
NTAPI
CsrLocateThreadByClientId(OUT PCSR_PROCESS *Process OPTIONAL,

View file

@ -328,6 +328,10 @@ NTAPI
CsrInsertThread(IN PCSR_PROCESS Process,
IN PCSR_THREAD Thread);
VOID
NTAPI
CsrLockedReferenceThread(IN PCSR_THREAD CsrThread);
/* api/process.c */
typedef NTSTATUS (WINAPI *CSRSS_ENUM_PROCESS_PROC)(PCSR_PROCESS ProcessData,
PVOID Context);