Add interface method for entering cook thread transactions

This commit is contained in:
Jack Andersen 2016-07-06 18:22:54 -10:00
parent 3aeb536d38
commit 907ed3d674
2 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,8 @@ public:
std::vector<ExtractReport> childOpts;
};
virtual void setThreadProject() {}
virtual bool canExtract(const ExtractPassInfo& info, std::vector<ExtractReport>& reps)
{(void)info;(void)reps;LogModule.report(logvisor::Error, "not implemented");return false;}
virtual void doExtract(const ExtractPassInfo& info, FProgress progress)

View File

@ -42,6 +42,7 @@ void ClientProcess::BufferTransaction::run(BlenderToken& btok)
void ClientProcess::CookTransaction::run(BlenderToken& btok)
{
m_dataSpec->setThreadProject();
m_returnResult = m_parent.syncCook(m_path, m_dataSpec, btok);
m_complete = true;
}