FACT++  1.0
void ConsoleStream::Run ( const char *  = 0)
virtual

Just usleep until Stop() was called.

Reimplemented from Readline.

Definition at line 252 of file Console.cc.

References Readline::GetExternalInput(), Readline::IsStopped(), Readline::ProcessLine(), and Readline::SetExternalInput().

Referenced by Console::GetStreamIn(), and Lock().

253 {
254  while (!IsStopped())
255  {
256  const string buf = GetExternalInput();
257  SetExternalInput("");
258  if (!buf.empty())
259  ProcessLine(buf);
260 
261  usleep(100000);
262  }
263 }
static void SetExternalInput(const std::string &inp)
Definition: Readline.h:116
static std::string GetExternalInput()
Definition: Readline.h:119
void ProcessLine(const std::string &str)
Definition: Readline.cc:1370
bool IsStopped() const
Definition: Readline.cc:1548

+ Here is the call graph for this function:

+ Here is the caller graph for this function: