Create local thread caches of registered function objects to reduce thread contention

This commit is contained in:
Jason Turner
2009-09-02 02:28:38 +00:00
parent 6c4872eae9
commit efb7a8d453
2 changed files with 26 additions and 13 deletions

View File

@@ -54,6 +54,8 @@ namespace chaiscript
value = rv.retval;
}
engine.sync_cache();
return value;
}
@@ -72,7 +74,10 @@ namespace chaiscript
{
l2.unlock();
eval_file(filename);
} else {
engine.sync_cache();
}
}