| 543 | } |
| 544 | |
| 545 | std::shared_ptr<Processor> App::getCurrentWindowProcInternal(Thread::ThreadID tid) { |
| 546 | auto it = m_processors.find((uint64)tid); |
| 547 | if (it != m_processors.end()) { |
| 548 | return it->second; |
| 549 | } |
| 550 | return nullptr; |
| 551 | } |
| 552 | |
| 553 | std::shared_ptr<ProcessorWindow> App::getCurrentWindow(Thread::ThreadID tid) { |
| 554 | if (auto proc = getCurrentWindowProcInternal(tid)) { |