mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:10:05 +00:00 
			
		
		
		
	Taking load data mutexes on destruction can cause a deadlock
This commit is contained in:
		
							parent
							
								
									acfb515e10
								
							
						
					
					
						commit
						889b6e81be
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -182,10 +182,6 @@ public: | ||||||
|                        providerManager->Disable(); |                        providerManager->Disable(); | ||||||
|                     }); |                     }); | ||||||
| 
 | 
 | ||||||
|       // Lock other mutexes before destroying, ensure loading is complete
 |  | ||||||
|       std::unique_lock loadLevel2DataLock {loadLevel2DataMutex_}; |  | ||||||
|       std::unique_lock loadLevel3DataLock {loadLevel3DataMutex_}; |  | ||||||
| 
 |  | ||||||
|       threadPool_.join(); |       threadPool_.join(); | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat