mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[CSRSRV]: Port CsrLockedReferenceThread from CSRSRV2.
svn path=/trunk/; revision=55704
This commit is contained in:
parent
131b6d2ea6
commit
f34ec165f6
2 changed files with 26 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue