Commit ab8ae79b authored by Steven Murray's avatar Steven Murray
Browse files

Fixed cta/CTA#853 Slow execution of queueing-related unit tests with valgrind

parent 00ee3900
......@@ -95,7 +95,8 @@ void OStoreDB::assertAgentAddressSet() {
// OStoreDB::waitSubthreadsComplete()
//------------------------------------------------------------------------------
void OStoreDB::waitSubthreadsComplete() {
while (m_taskQueueSize) std::this_thread::yield();
// This method is only used by unit tests so calling usleep() is good enough
while (m_taskQueueSize) ::usleep(1000);
}
//------------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment