mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Do not store obsolete info about deleted threads
This commit is contained in:
parent
b759cb23a5
commit
84e5b159c3
|
|
@ -528,9 +528,7 @@ void Processor::OnThreadDestroyed(uint32_t thread_id) {
|
||||||
auto global_lock = global_critical_region_.Acquire();
|
auto global_lock = global_critical_region_.Acquire();
|
||||||
auto it = thread_debug_infos_.find(thread_id);
|
auto it = thread_debug_infos_.find(thread_id);
|
||||||
assert_true(it != thread_debug_infos_.end());
|
assert_true(it != thread_debug_infos_.end());
|
||||||
auto thread_info = it->second.get();
|
thread_debug_infos_.erase(it);
|
||||||
thread_info->state = ThreadDebugInfo::State::kZombie;
|
|
||||||
thread_info->thread = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Processor::OnThreadEnteringWait(uint32_t thread_id) {
|
void Processor::OnThreadEnteringWait(uint32_t thread_id) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue