mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for named threads (atm linux only)
This commit is contained in:
parent
d22621efc1
commit
edcad09dee
7 changed files with 36 additions and 1 deletions
|
@ -262,6 +262,9 @@ void* AsyncWorkerThread::worker_thread_main() {
|
|||
snprintf(number,sizeof(number),"%d",m_threadnum);
|
||||
log_register_thread(std::string("AsyncWorkerThread_") + number);
|
||||
|
||||
porting::setThreadName(
|
||||
std::string(std::string("AsyncWorkTh_") + number).c_str());
|
||||
|
||||
/** prepare job lua environment **/
|
||||
lua_newtable(m_LuaStack);
|
||||
lua_setglobal(m_LuaStack, "engine");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue