aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-02-18 21:30:10 +0000
committerHoward Chu <hyc@symas.com>2016-02-18 21:30:10 +0000
commit7c86c5997d72062191c2fb4fbaf003bf48485842 (patch)
tree82712a6c2128ea1b818aa9e5bca5b5016744bbb5 /contrib
parentMerge pull request #675 (diff)
downloadmonero-7c86c5997d72062191c2fb4fbaf003bf48485842.tar.xz
Use boost::thread instead of std::thread
std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/console_handler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h
index 5c63556ae..d76d7930c 100644
--- a/contrib/epee/include/console_handler.h
+++ b/contrib/epee/include/console_handler.h
@@ -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;