Alternative to D121500 that does the locking at the IOHandler level.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
That is roughly what I had in mind, *but* if you look inside Editline class, you'll see that it already declares a std::mutex m_output_mutex variable. It was introduced for the same reason as this mutex here, although it only controls stdout access during command line editing (and not when the command output is printed).
Ideally we wouldn't have two mutexes controlling stdout access. I think it should be possible to delete the mutex in the Editline class, and replace it with (a reference to?) the mutex you define here, but I haven't tried proving to myself that this will work.
lldb/include/lldb/Interpreter/CommandInterpreter.h | ||
---|---|---|
659 |