mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-16 13:23:26 +00:00
Print TIDs in every new thread
This commit is contained in:
@@ -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{};
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user