December 16, 2011

LarsG LarsG
Lab Rat
8 posts

qDebug() Thread Safe ?

 

While debugging a deadlock problem I came to wonder if qDebug is thread safe, can it really be true it isn’t ?

The documentation does not explicit mention if it is thread safe or not.

1 reply

December 16, 2011

miroslav miroslav
Ant Farmer
228 posts

Rule of thumb: If the documentation does not state that something is thread safe, it is not. But I wonder how qDebug() can be involved in a deadlock problem, since it should be reentrant.

 Signature 

Mirko Boehm | .(JavaScript must be enabled to view this email address) | KDE e.V.
FSFE Fellow
Qt Certified Specialist

 
  ‹‹ memory leak with valgrind      Replace ncurses-Masks of Fortran-Progr. with Qt-Masks ››

You must log in to post a reply. Not a member yet? Register here!