Implement accessor for the currently executing executive thread
This commit is contained in:
@@ -21,6 +21,7 @@ namespace PS
|
|||||||
STATIC XTAPI XTSTATUS CreateIdleThread(IN PKPROCESSOR_CONTROL_BLOCK Prcb,
|
STATIC XTAPI XTSTATUS CreateIdleThread(IN PKPROCESSOR_CONTROL_BLOCK Prcb,
|
||||||
IN PVOID Stack);
|
IN PVOID Stack);
|
||||||
STATIC XTAPI VOID DeleteThread(IN PVOID ThreadObject);
|
STATIC XTAPI VOID DeleteThread(IN PVOID ThreadObject);
|
||||||
|
STATIC XTAPI PETHREAD GetCurrentThread(VOID);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,3 +78,18 @@ PS::Thread::DeleteThread(IN PVOID ThreadObject)
|
|||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves a pointer to the currently executing executive thread object.
|
||||||
|
*
|
||||||
|
* @return This routine returns the address of the current executive thread object.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
|
XTAPI
|
||||||
|
PETHREAD
|
||||||
|
PS::Thread::GetCurrentThread(VOID)
|
||||||
|
{
|
||||||
|
/* Retrieve the active kernel thread and cast it to the executive thread */
|
||||||
|
return (PETHREAD)KE::Processor::GetCurrentThread();
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user