mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:40:04 +00:00 
			
		
		
		
	Objects should be locked prior to looking up element
This commit is contained in:
		
							parent
							
								
									23337b3b21
								
							
						
					
					
						commit
						b7aeecfe83
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -85,6 +85,8 @@ AwsLevel2DataProvider::FindKey(std::chrono::system_clock::time_point time) | |||
| 
 | ||||
|    std::string key {}; | ||||
| 
 | ||||
|    std::shared_lock lock(p->objectsMutex_); | ||||
| 
 | ||||
|    std::optional<std::string> element = | ||||
|       util::GetBoundedElement(p->objects_, time); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat