mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-07 08:38:45 +00:00
Implement KSynchronizationObject
This commit is contained in:
parent
1684e1d35c
commit
7fde5fbe40
6 changed files with 82 additions and 3 deletions
|
@ -120,6 +120,15 @@ void KThread::CancelKernelSync(Result res)
|
|||
CancelKernelSync();
|
||||
}
|
||||
|
||||
void KThread::HandleSyncObjectSignaled(KSynchronizationObject *syncObj)
|
||||
{
|
||||
if (GetSchedulingStatus() == SchedulingStatus::Paused) {
|
||||
signaledSyncObject = syncObj;
|
||||
syncResult = ResultSuccess{};
|
||||
Reschedule(SchedulingStatus::Running);
|
||||
}
|
||||
}
|
||||
|
||||
void KThread::AddToMutexWaitList(KThread &thread)
|
||||
{
|
||||
// TODO: check&increment numKernelMutexWaiters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue