mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-16 16:14:25 -04:00
kern: KAutoObject destruction is now scheduled for next dpc-time
This commit is contained in:
parent
15956fcf9a
commit
4407237f5b
7 changed files with 94 additions and 18 deletions
|
@ -155,8 +155,9 @@ namespace ams::kern {
|
|||
m_lock_owner = nullptr;
|
||||
m_num_core_migration_disables = 0;
|
||||
|
||||
/* We have no waiters, but we do have an entrypoint. */
|
||||
/* We have no waiters, and no closed objects. */
|
||||
m_num_kernel_waiters = 0;
|
||||
m_closed_object = nullptr;
|
||||
|
||||
/* Set our current core id. */
|
||||
m_current_core_id = phys_core;
|
||||
|
@ -1157,6 +1158,9 @@ namespace ams::kern {
|
|||
m_parent->DecrementRunningThreadCount();
|
||||
}
|
||||
|
||||
/* Destroy any dependent objects. */
|
||||
this->DestroyClosedObjects();
|
||||
|
||||
/* Perform termination. */
|
||||
{
|
||||
KScopedSchedulerLock sl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue