Add event priority boost stub
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 36s
Builds / ExectOS (i686, debug) (push) Successful in 35s
Builds / ExectOS (amd64, release) (push) Successful in 52s
Builds / ExectOS (i686, release) (push) Successful in 48s

This commit is contained in:
2026-06-29 16:04:28 +02:00
parent 7d9c338e2a
commit 9ef8c569d5
2 changed files with 34 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ namespace KE
STATIC XTAPI LONG SetEvent(IN PKEVENT Event, STATIC XTAPI LONG SetEvent(IN PKEVENT Event,
IN KPRIORITY Increment, IN KPRIORITY Increment,
IN BOOLEAN Wait); IN BOOLEAN Wait);
STATIC XTAPI VOID SetEventBoostPriority(IN PKEVENT Event,
IN OUT PKTHREAD* WaitingThread);
}; };
} }

View File

@@ -83,3 +83,35 @@ KE::Event::SetEvent(IN PKEVENT Event,
return 0; return 0;
} }
/**
* Sets an event to the signaled state and attempts to boost the priority of the waiting thread.
*
* @param Event
* Supplies a pointer to the dispatcher object (Event) to be signaled.
*
* @param WaitingThread
* supplies an optional pointer to a variable that receives the unblocked thread.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
KE::Event::SetEventBoostPriority(IN PKEVENT Event,
IN OUT PKTHREAD* WaitingThread)
{
/* Not implemented, active polling only */
UNIMPLEMENTED;
/* Set the signal state */
Event->Header.SignalState = 1;
/* Check if the caller requested the unblocked thread */
if(WaitingThread != NULLPTR)
{
/* Return NULLPTR for now */
*WaitingThread = NULLPTR;
}
}