#include <console_handler.h>
Definition at line 50 of file console_handler.h.
◆ async_stdin_reader()
| epee::async_stdin_reader::async_stdin_reader |
( |
| ) |
|
|
inline |
Definition at line 53 of file console_handler.h.
55 , m_has_read_request(
false)
56 , m_read_status(state_init)
59 m_readline_buffer.start();
61 m_reader_thread = boost::thread(std::bind(&async_stdin_reader::reader_thread_func,
this));
◆ ~async_stdin_reader()
| epee::async_stdin_reader::~async_stdin_reader |
( |
| ) |
|
|
inline |
◆ eos()
| bool epee::async_stdin_reader::eos |
( |
| ) |
const |
|
inline |
◆ get_line()
| bool epee::async_stdin_reader::get_line |
( |
std::string & |
line | ) |
|
|
inline |
Definition at line 78 of file console_handler.h.
83 if (state_eos == m_read_status)
86 boost::unique_lock<boost::mutex> lock(m_response_mutex);
87 while (state_init == m_read_status)
89 m_response_cv.wait(lock);
93 if (state_success == m_read_status)
100 m_read_status = state_init;
◆ stop()
| void epee::async_stdin_reader::stop |
( |
| ) |
|
|
inline |
Definition at line 107 of file console_handler.h.
111 m_run.store(
false, std::memory_order_relaxed);
114 ::CloseHandle(::GetStdHandle(STD_INPUT_HANDLE));
117 m_request_cv.notify_one();
118 m_reader_thread.join();
120 m_readline_buffer.stop();
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/include/console_handler.h