mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix C++11 compatibility
This commit is contained in:
parent
482c4d69b0
commit
fdede60034
4 changed files with 12 additions and 8 deletions
|
@ -117,9 +117,9 @@ bool Thread::start()
|
|||
|
||||
try {
|
||||
m_thread_obj = new std::thread(threadProc, this);
|
||||
m_thread_id = m_thread->get_id();
|
||||
m_thread_handle = m_thread->native_handle();
|
||||
} except (const std::system_error &e) {
|
||||
m_thread_id = m_thread_obj->get_id();
|
||||
m_thread_handle = m_thread_obj->native_handle();
|
||||
} catch (const std::system_error &e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ DEALINGS IN THE SOFTWARE.
|
|||
#ifndef THREADING_THREAD_H
|
||||
#define THREADING_THREAD_H
|
||||
|
||||
#include "basicmacros.h"
|
||||
#include "threading/atomic.h"
|
||||
#include "threading/mutex.h"
|
||||
#include "threads.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue