mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
5cc8ad946e
commit
6c5e5e2023
16 changed files with 82 additions and 160 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue