[Development] QtCS 2017 logging/tracing session notes
Sze Howe Koh
szehowe.koh at gmail.com
Wed Oct 11 00:35:53 CEST 2017
On 11 October 2017 at 03:49, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On Tuesday, 10 October 2017 20:18:42 CEST Mat Sutcliffe wrote:
> > On 10 October 2017 at 15:28, Thiago Macieira <thiago.macieira at intel.com>
> > wrote:
> > > On Tuesday, 10 October 2017 15:12:52 CEST Christian Gagneraud wrote:
> > > > (PS: I don't even know if qDebug streaming is lock-free and i'm
> > > > interested to know the answer:))
> > >
> > > It's not. There are mutexes inside.
> > The SO answer and its comments claim that qDebug is not even thread-safe:
> > https://stackoverflow.com/a/7154385/1639256
> SO is wrong.
shows an example: The program called qDebug() from 2 threads. As a
result, part of output from one call to be inserted in the middle of
the output of another call.
This was tested with Qt 5.2.1 -- has something changed since then?
More information about the Development