mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:20:05 +00:00 
			
		
		
		
	Add thread manager for QThreads
This commit is contained in:
		
							parent
							
								
									2efdd1b046
								
							
						
					
					
						commit
						8f7076cd09
					
				
					 4 changed files with 126 additions and 0 deletions
				
			
		|  | @ -7,6 +7,7 @@ | |||
| #include <scwx/qt/manager/radar_product_manager.hpp> | ||||
| #include <scwx/qt/manager/resource_manager.hpp> | ||||
| #include <scwx/qt/manager/settings_manager.hpp> | ||||
| #include <scwx/qt/manager/thread_manager.hpp> | ||||
| #include <scwx/qt/settings/general_settings.hpp> | ||||
| #include <scwx/qt/types/qt_types.hpp> | ||||
| #include <scwx/qt/ui/setup/setup_wizard.hpp> | ||||
|  | @ -129,6 +130,9 @@ int main(int argc, char* argv[]) | |||
|    // Deinitialize application
 | ||||
|    scwx::qt::manager::RadarProductManager::Cleanup(); | ||||
| 
 | ||||
|    // Stop Qt Threads
 | ||||
|    scwx::qt::manager::ThreadManager::Instance().StopThreads(); | ||||
| 
 | ||||
|    // Gracefully stop the io_context main loop
 | ||||
|    work.reset(); | ||||
|    threadPool.join(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat