mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	service_thread: fix uninitialized memory usage
This commit is contained in:
		@@ -36,14 +36,14 @@ public:
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    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;
 | 
			
		||||
 | 
			
		||||
    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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user