MCPcopy Create free account
hub / github.com/anjo76/angelscript / Thread

Function Thread

sdk/tests/test_multithread/source/test_sharedstring.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static asIScriptEngine *engine = 0;
21
22void Thread(void *)
23{
24 asIScriptModule *mod = engine->GetModule(0);
25 asIScriptFunction *func = mod->GetFunctionByIndex(1);
26 const char *str = func->GetDeclaration();
27
28 // Give AngelScript a chance to cleanup some memory
29 asThreadCleanup();
30}
31
32bool Test()
33{

Callers

nothing calls this directly

Calls 4

asThreadCleanupFunction · 0.85
GetFunctionByIndexMethod · 0.80
GetDeclarationMethod · 0.80
GetModuleMethod · 0.45

Tested by

no test coverage detected