mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Remove threads.h and replace its definitions with their C++11 equivalents (#5957)
This also changes threadProc's signature, since C++11 supports arbitrary thread function signatures.
This commit is contained in:
@@ -180,10 +180,8 @@ bool Thread::getReturnValue(void **ret)
|
||||
}
|
||||
|
||||
|
||||
void *Thread::threadProc(void *param)
|
||||
void Thread::threadProc(Thread *thr)
|
||||
{
|
||||
Thread *thr = (Thread *)param;
|
||||
|
||||
#ifdef _AIX
|
||||
thr->m_kernel_thread_id = thread_self();
|
||||
#endif
|
||||
@@ -201,9 +199,6 @@ void *Thread::threadProc(void *param)
|
||||
|
||||
thr->m_running = false;
|
||||
g_logger.deregisterThread();
|
||||
|
||||
// 0 is returned here to avoid an unnecessary ifdef clause
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user