Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function run(filename)
{
if (_isActive)
throw new Error("map engine is already running");
_isActive = true;
_threadID = threads.create({
update: _update,
render: _render,
getInput: _getInput
});
threads.join(_threadID);
_threadID = null;
}