Browse Source
Merge pull request #9381 from liamwhite/uninit
service_thread: fix uninitialized memory usage
pull/15/merge
Mai
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
7 deletions
-
src/core/hle/kernel/service_thread.cpp
|
|
@ -36,14 +36,14 @@ public: |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
KernelCore& kernel; |
|
|
KernelCore& kernel; |
|
|
|
|
|
|
|
|
std::jthread m_host_thread; |
|
|
|
|
|
std::mutex m_session_mutex; |
|
|
|
|
|
std::map<KServerSession*, std::shared_ptr<SessionRequestManager>> m_sessions; |
|
|
|
|
|
KEvent* m_wakeup_event; |
|
|
|
|
|
KThread* m_thread; |
|
|
|
|
|
std::atomic<bool> m_shutdown_requested; |
|
|
|
|
|
const std::string m_service_name; |
|
|
const std::string m_service_name; |
|
|
|
|
|
|
|
|
|
|
|
std::jthread m_host_thread{}; |
|
|
|
|
|
std::mutex m_session_mutex{}; |
|
|
|
|
|
std::map<KServerSession*, std::shared_ptr<SessionRequestManager>> m_sessions{}; |
|
|
|
|
|
KEvent* m_wakeup_event{}; |
|
|
|
|
|
KThread* m_thread{}; |
|
|
|
|
|
std::atomic<bool> m_shutdown_requested{}; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
void ServiceThread::Impl::WaitAndProcessImpl() { |
|
|
void ServiceThread::Impl::WaitAndProcessImpl() { |
|
|
|