mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 09:55:04 -04:00
Use boost::thread instead of std::thread
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
This commit is contained in:
parent
1889c0e81c
commit
7c86c5997d
4 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue