mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:10:06 +00:00 
			
		
		
		
	Lock timeline mutexes before destroying
This commit is contained in:
		
							parent
							
								
									344d32081e
								
							
						
					
					
						commit
						ab42772f37
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -24,7 +24,11 @@ class TimelineManager::Impl | |||
| public: | ||||
|    explicit Impl(TimelineManager* self) : self_ {self} {} | ||||
| 
 | ||||
|    ~Impl() {} | ||||
|    ~Impl() | ||||
|    { | ||||
|       // Lock mutexes before destroying
 | ||||
|       std::unique_lock selectTimeLock {selectTimeMutex_}; | ||||
|    } | ||||
| 
 | ||||
|    TimelineManager* self_; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat