mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-01-10 11:26:15 +00:00
mesosphere: Result{} => Result()
This commit is contained in:
parent
cd1f74154d
commit
0a0c05481e
4 changed files with 11 additions and 11 deletions
|
@ -295,7 +295,7 @@ private:
|
||||||
uiptr kernelStackTop = 0;
|
uiptr kernelStackTop = 0;
|
||||||
|
|
||||||
KSynchronizationObject *signaledSyncObject = nullptr;
|
KSynchronizationObject *signaledSyncObject = nullptr;
|
||||||
Result syncResult = ResultSuccess{};
|
Result syncResult = ResultSuccess();
|
||||||
|
|
||||||
u64 lastScheduledTime = 0;
|
u64 lastScheduledTime = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,7 +20,7 @@ Result KEvent::Initialize()
|
||||||
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
|
SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess());
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
|
|
||||||
return ResultSuccess{};
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -24,14 +24,14 @@ Result KReadableEvent::Signal()
|
||||||
NotifyWaiters();
|
NotifyWaiters();
|
||||||
}
|
}
|
||||||
|
|
||||||
return ResultSuccess{};
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result KReadableEvent::Clear()
|
Result KReadableEvent::Clear()
|
||||||
{
|
{
|
||||||
Reset();
|
Reset();
|
||||||
|
|
||||||
return ResultSuccess{};
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result KReadableEvent::Reset()
|
Result KReadableEvent::Reset()
|
||||||
|
@ -40,9 +40,9 @@ Result KReadableEvent::Reset()
|
||||||
|
|
||||||
if (this->isSignaled) {
|
if (this->isSignaled) {
|
||||||
this->isSignaled = false;
|
this->isSignaled = false;
|
||||||
return ResultSuccess{};
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
return ResultKernelInvalidState{};
|
return ResultKernelInvalidState();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ void KThread::HandleSyncObjectSignaled(KSynchronizationObject *syncObj)
|
||||||
{
|
{
|
||||||
if (GetSchedulingStatus() == SchedulingStatus::Paused) {
|
if (GetSchedulingStatus() == SchedulingStatus::Paused) {
|
||||||
signaledSyncObject = syncObj;
|
signaledSyncObject = syncObj;
|
||||||
syncResult = ResultSuccess{};
|
syncResult = ResultSuccess();
|
||||||
Reschedule(SchedulingStatus::Running);
|
Reschedule(SchedulingStatus::Running);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,13 +152,13 @@ Result KThread::WaitSynchronizationImpl(int &outId, KSynchronizationObject **syn
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timeoutTime == KSystemClock::time_point{} && outId == -1) {
|
if (timeoutTime == KSystemClock::time_point{} && outId == -1) {
|
||||||
return ResultKernelTimedOut{};
|
return ResultKernelTimedOut();
|
||||||
}
|
}
|
||||||
if (IsDying()) {
|
if (IsDying()) {
|
||||||
return ResultKernelThreadTerminating{};
|
return ResultKernelThreadTerminating();
|
||||||
}
|
}
|
||||||
if (cancelled) {
|
if (cancelled) {
|
||||||
return ResultKernelCancelled{};
|
return ResultKernelCancelled();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < numSyncObjs; i++) {
|
for (int i = 0; i < numSyncObjs; i++) {
|
||||||
|
@ -167,7 +167,7 @@ Result KThread::WaitSynchronizationImpl(int &outId, KSynchronizationObject **syn
|
||||||
|
|
||||||
isWaitingSync = true;
|
isWaitingSync = true;
|
||||||
signaledSyncObject = nullptr;
|
signaledSyncObject = nullptr;
|
||||||
syncResult = ResultKernelTimedOut{};
|
syncResult = ResultKernelTimedOut();
|
||||||
|
|
||||||
Reschedule(SchedulingStatus::Paused);
|
Reschedule(SchedulingStatus::Paused);
|
||||||
if (timeoutTime > KSystemClock::time_point{}) {
|
if (timeoutTime > KSystemClock::time_point{}) {
|
||||||
|
|
Loading…
Reference in a new issue