mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:10:06 +00:00 
			
		
		
		
	Fixing thread lifetime issues in Radar Product Manager
This commit is contained in:
		
							parent
							
								
									0a4cf9a9e7
								
							
						
					
					
						commit
						cc8377064f
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -102,7 +102,7 @@ public: | |||
|               self, | ||||
|               &RadarProductManager::NewDataAvailable); | ||||
|    } | ||||
|    ~ProviderManager() = default; | ||||
|    ~ProviderManager() { threadPool_.join(); }; | ||||
| 
 | ||||
|    std::string name() const; | ||||
| 
 | ||||
|  | @ -179,6 +179,8 @@ public: | |||
|       // Lock other mutexes before destroying, ensure loading is complete
 | ||||
|       std::unique_lock loadLevel2DataLock {loadLevel2DataMutex_}; | ||||
|       std::unique_lock loadLevel3DataLock {loadLevel3DataMutex_}; | ||||
| 
 | ||||
|       threadPool_.join(); | ||||
|    } | ||||
| 
 | ||||
|    RadarProductManager* self_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat