Use boost::thread instead of std::thread

std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
This commit is contained in:
Howard Chu 2016-02-18 21:30:10 +00:00
parent 1889c0e81c
commit 7c86c5997d
4 changed files with 7 additions and 5 deletions

View file

@ -36,6 +36,7 @@
#ifdef __OpenBSD__
#include <stdio.h>
#endif
#include <boost/thread.hpp>
namespace epee
{
@ -47,7 +48,7 @@ namespace epee
, m_has_read_request(false)
, m_read_status(state_init)
{
m_reader_thread = std::thread(std::bind(&async_stdin_reader::reader_thread_func, this));
m_reader_thread = boost::thread(std::bind(&async_stdin_reader::reader_thread_func, this));
}
~async_stdin_reader()
@ -212,7 +213,7 @@ namespace epee
};
private:
std::thread m_reader_thread;
boost::thread m_reader_thread;
std::atomic<bool> m_run;
std::string m_line;