|
Monero
|
#include <console_handler.h>
Public Member Functions | |
| async_stdin_reader () | |
| ~async_stdin_reader () | |
| bool | get_line (std::string &line) |
| bool | eos () const |
| void | stop () |
| void | cancel () |
Private Types | |
| enum | t_state { state_init , state_success , state_error , state_cancelled , state_eos } |
Private Member Functions | |
| bool | start_read () |
| bool | wait_read () |
| bool | wait_stdin_data () |
| void | reader_thread_func () |
Private Attributes | |
| boost::thread | m_reader_thread |
| std::atomic< bool > | m_run |
| std::string | m_line |
| bool | m_has_read_request |
| t_state | m_read_status |
| boost::mutex | m_request_mutex |
| boost::mutex | m_response_mutex |
| boost::condition_variable | m_request_cv |
| boost::condition_variable | m_response_cv |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |