Print TIDs in every new thread

This commit is contained in:
Lion Kortlepel
2020-11-03 10:22:49 +01:00
parent 2ec65d5b84
commit b2166402a2
11 changed files with 16 additions and 9 deletions

View File

@@ -48,6 +48,7 @@ void FolderList(const std::string& Path,bool HotSwap){
}
}
[[noreturn]]void HotSwaps(const std::string& path){
DebugPrintTID();
while(true){
for(Lua*Script : PluginEngine){
struct stat Info{};

View File

@@ -162,6 +162,7 @@ void ExecuteAsync(Lua* lua,const std::string& FuncName){
SafeExecution(lua,FuncName);
}
void CallAsync(Lua* lua,const std::string& Func,int U){
DebugPrintTID();
lua->StopThread = false;
int D = 1000 / U;
while(!lua->StopThread){