mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 01:29:25 -05:00
readline_buffer: add a couple const
This commit is contained in:
parent
ae8841f2ab
commit
5f8f290505
@ -13,11 +13,11 @@ namespace rdln
|
|||||||
void start();
|
void start();
|
||||||
void stop();
|
void stop();
|
||||||
int process();
|
int process();
|
||||||
bool is_running()
|
bool is_running() const
|
||||||
{
|
{
|
||||||
return m_cout_buf != NULL;
|
return m_cout_buf != NULL;
|
||||||
}
|
}
|
||||||
void get_line(std::string& line);
|
void get_line(std::string& line) const;
|
||||||
void set_prompt(const std::string& prompt);
|
void set_prompt(const std::string& prompt);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -62,7 +62,7 @@ void rdln::readline_buffer::stop()
|
|||||||
remove_line_handler();
|
remove_line_handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
void rdln::readline_buffer::get_line(std::string& line)
|
void rdln::readline_buffer::get_line(std::string& line) const
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(line_mutex);
|
std::unique_lock<std::mutex> lock(line_mutex);
|
||||||
have_line.wait(lock);
|
have_line.wait(lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user