Lifecycle management of threads #29

Merged
harraiken merged 240 commits from threads into master 2026-09-07 13:45:09 +02:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit 2868db63ca - Show all commits

View File

@@ -25,6 +25,7 @@ namespace KE
STATIC ULONG TimeAdjustment; STATIC ULONG TimeAdjustment;
public: public:
STATIC XTAPI VOID GetInterruptTime(OUT PLARGE_INTEGER InterruptTime);
STATIC XTAPI VOID GetSystemTime(OUT PLARGE_INTEGER SystemTime); STATIC XTAPI VOID GetSystemTime(OUT PLARGE_INTEGER SystemTime);
STATIC XTAPI VOID SetSystemTime(IN PLARGE_INTEGER NewTime, STATIC XTAPI VOID SetSystemTime(IN PLARGE_INTEGER NewTime,
OUT PLARGE_INTEGER OldTime, OUT PLARGE_INTEGER OldTime,

View File

@@ -9,6 +9,26 @@
#include <xtos.hh> #include <xtos.hh>
/**
* Returns the current interrupt time.
*
* @param SystemTime
* Supplies a pointer to a variable that receives the current interrupt time.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
KE::SystemTime::GetInterruptTime(OUT PLARGE_INTEGER InterruptTime)
{
LARGE_INTEGER CurrentTime;
/* Fetch the time using the lock-free shared data mechanism and return it */
CurrentTime = KE::SharedData::GetInterruptTime();
InterruptTime->QuadPart = CurrentTime.QuadPart;
}
/** /**
* Returns the current system time. * Returns the current system time.