Re-add DBI query throttling (r=dvander).
This commit is contained in:
		
							parent
							
								
									c4279da3b2
								
							
						
					
					
						commit
						c79f52e2c9
					
				@ -615,6 +615,17 @@ void DBManager::ThreadMain()
 | 
			
		||||
				ke::AutoLock lock(&m_ThinkLock);
 | 
			
		||||
				m_ThinkQueue.push(op);
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			
 | 
			
		||||
			if (!m_Terminate)
 | 
			
		||||
			{
 | 
			
		||||
				ke::AutoUnlock unlock(&m_QueueEvent);
 | 
			
		||||
#ifdef _WIN32
 | 
			
		||||
				Sleep(20);
 | 
			
		||||
#else
 | 
			
		||||
				usleep(20000);
 | 
			
		||||
#endif
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (m_Terminate)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user