mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 12:30:05 +00:00 
			
		
		
		
	Release all mutexes before joining threads in TimelineManager
This commit is contained in:
		
							parent
							
								
									7fbd9e45a9
								
							
						
					
					
						commit
						985473a0a4
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -53,8 +53,10 @@ public: | |||
|       // Lock mutexes before destroying
 | ||||
|       std::unique_lock animationTimerLock {animationTimerMutex_}; | ||||
|       animationTimer_.cancel(); | ||||
|       animationTimerLock.unlock(); | ||||
| 
 | ||||
|       std::unique_lock selectTimeLock {selectTimeMutex_}; | ||||
|       selectThreadPool_.join(); | ||||
|       playThreadPool_.join(); | ||||
|    } | ||||
| 
 | ||||
|    TimelineManager* self_; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat