MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / AllocateDynamicScriptThread

Function AllocateDynamicScriptThread

Engine/script/script.cpp:396–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394void PostScriptProcessing();
395
396ScriptThread *AllocateDynamicScriptThread()
397{
398 scriptThreadCallbacks.push(std::make_unique<ScriptThread>(String::FromFormat("Callback%04zu", scriptThreadCallbacks.size() + 1u)));
399 return scriptThreadCallbacks.top().get();
400}
401
402void FreeDynamicScriptThread(ScriptThread *script_thread)
403{

Callers 1

RunScriptFunctionFunction · 0.85

Calls 3

pushMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected