mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-13 14:44:23 -04:00
exo/meso: update for gcc 11 compatibility
This commit is contained in:
parent
19be54ff95
commit
4f16106702
13 changed files with 102 additions and 51 deletions
|
@ -436,7 +436,7 @@ namespace ams::kern {
|
|||
/* Disallow performing thread suspension. */
|
||||
{
|
||||
/* Update our allow flags. */
|
||||
m_suspend_allowed_flags &= ~(1 << (SuspendType_Thread + ThreadState_SuspendShift));
|
||||
m_suspend_allowed_flags &= ~(1 << (util::ToUnderlying(SuspendType_Thread) + util::ToUnderlying(ThreadState_SuspendShift)));
|
||||
|
||||
/* Update our state. */
|
||||
this->UpdateState();
|
||||
|
@ -485,7 +485,7 @@ namespace ams::kern {
|
|||
/* Allow performing thread suspension (if termination hasn't been requested). */
|
||||
if (!this->IsTerminationRequested()) {
|
||||
/* Update our allow flags. */
|
||||
m_suspend_allowed_flags |= (1 << (SuspendType_Thread + ThreadState_SuspendShift));
|
||||
m_suspend_allowed_flags |= (1 << (util::ToUnderlying(SuspendType_Thread) + util::ToUnderlying(ThreadState_SuspendShift)));
|
||||
|
||||
/* Update our state. */
|
||||
this->UpdateState();
|
||||
|
@ -760,7 +760,7 @@ namespace ams::kern {
|
|||
KScopedSchedulerLock lk;
|
||||
|
||||
/* Note the request in our flags. */
|
||||
m_suspend_request_flags |= (1u << (ThreadState_SuspendShift + type));
|
||||
m_suspend_request_flags |= (1u << (util::ToUnderlying(ThreadState_SuspendShift) + util::ToUnderlying(type)));
|
||||
|
||||
/* Try to perform the suspend. */
|
||||
this->TrySuspend();
|
||||
|
@ -772,7 +772,7 @@ namespace ams::kern {
|
|||
KScopedSchedulerLock sl;
|
||||
|
||||
/* Clear the request in our flags. */
|
||||
m_suspend_request_flags &= ~(1u << (ThreadState_SuspendShift + type));
|
||||
m_suspend_request_flags &= ~(1u << (util::ToUnderlying(ThreadState_SuspendShift) + util::ToUnderlying(type)));
|
||||
|
||||
/* Update our state. */
|
||||
this->UpdateState();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue