Skip to content

Commit

Permalink
preload bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
i-saint committed Jun 30, 2013
1 parent a41bae8 commit 53244b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dpBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,13 @@ void dpBuilder::preload()
if(m_preload_stop) { return; }

dpObjFile *obj = new dpObjFile(m_context);
if(obj->loadFile(path.c_str())) {
bool loaded = false;
{
dpMutex::ScopedLock lock(m_mtx_preload);
loaded = obj->loadFile(path.c_str());
}

if(loaded) {
dpPrintInfo("preload begin %s\n", path.c_str());
obj->eachSymbols([&](dpSymbol *sym){
if(m_preload_stop) { return; }
Expand Down

0 comments on commit 53244b6

Please sign in to comment.