On 11 October 2017 at 03:49, Thiago Macieira <[email protected]> wrote:
>
> On Tuesday, 10 October 2017 20:18:42 CEST Mat Sutcliffe wrote:
> > On 10 October 2017 at 15:28, Thiago Macieira <[email protected]>
> >
> > 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.

https://stackoverflow.com/questions/22527253/is-qdebug-thread-safe/23517726#23517726
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?


Regards,
Sze-Howe
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to