diff options
author | Liam <byteslice@airmail.cc> | 2023-12-23 22:26:07 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-23 22:26:07 +0100 |
commit | e3491a9ee862e5980c623d4a85cd3dd07e355e59 (patch) | |
tree | d1dd67286d63ffa32041a2db223136ac35113ca3 /src/core/hle/kernel/k_auto_object_container.cpp | |
parent | Merge pull request #12412 from ameerj/gl-query-prims (diff) | |
download | yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar.gz yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar.bz2 yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar.lz yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar.xz yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.tar.zst yuzu-e3491a9ee862e5980c623d4a85cd3dd07e355e59.zip |
Diffstat (limited to 'src/core/hle/kernel/k_auto_object_container.cpp')
-rw-r--r-- | src/core/hle/kernel/k_auto_object_container.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_auto_object_container.cpp b/src/core/hle/kernel/k_auto_object_container.cpp index 636b3f993..7bea1a1c2 100644 --- a/src/core/hle/kernel/k_auto_object_container.cpp +++ b/src/core/hle/kernel/k_auto_object_container.cpp @@ -8,19 +8,22 @@ namespace Kernel { void KAutoObjectWithListContainer::Register(KAutoObjectWithList* obj) { - KScopedLightLock lk(m_lock); + // KScopedInterruptDisable di; + KScopedSpinLock lk(m_lock); m_object_list.insert_unique(*obj); } void KAutoObjectWithListContainer::Unregister(KAutoObjectWithList* obj) { - KScopedLightLock lk(m_lock); + // KScopedInterruptDisable di; + KScopedSpinLock lk(m_lock); m_object_list.erase(*obj); } size_t KAutoObjectWithListContainer::GetOwnedCount(KProcess* owner) { - KScopedLightLock lk(m_lock); + // KScopedInterruptDisable di; + KScopedSpinLock lk(m_lock); return std::count_if(m_object_list.begin(), m_object_list.end(), [&](const auto& obj) { return obj.GetOwner() == owner; }); |