Add notification on stop

This commit is contained in:
Jethro Grassie 2017-07-07 07:59:07 -04:00
parent 605ad09a3e
commit 6a23cd07aa
No known key found for this signature in database
GPG key ID: DE8ED755616565BB

View file

@ -59,6 +59,7 @@ void rdln::readline_buffer::start()
void rdln::readline_buffer::stop() void rdln::readline_buffer::stop()
{ {
std::unique_lock<std::mutex> lock(process_mutex); std::unique_lock<std::mutex> lock(process_mutex);
have_line.notify_all();
if(m_cout_buf == NULL) if(m_cout_buf == NULL)
return; return;
std::cout.rdbuf(m_cout_buf); std::cout.rdbuf(m_cout_buf);