Fix cook tool crash

This commit is contained in:
Jack Andersen 2018-06-15 16:26:30 -10:00
parent 61f744e15d
commit 3f45710fb2
2 changed files with 3 additions and 4 deletions

View File

@ -168,9 +168,8 @@ public:
{
hecl::MultiProgressPrinter printer(true);
hecl::ClientProcess cp(&printer);
for (int i=0 ; i<m_spec->m_numCookPasses ; ++i)
for (const hecl::ProjectPath& path : m_selectedItems)
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp, i);
for (const hecl::ProjectPath& path : m_selectedItems)
m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp);
cp.waitUntilComplete();
return 0;
}

View File

@ -72,7 +72,7 @@ void ClientProcess::Worker::proc()
ClientProcess::ThreadWorker.reset(this);
char thrName[64];
snprintf(thrName, 64, "HECL Worker%d", m_idx);
snprintf(thrName, 64, "HECL Worker %d", m_idx);
logvisor::RegisterThreadName(thrName);
std::unique_lock<std::mutex> lk(m_proc.m_mutex);