[Digikam-devel] [Bug 133026] crashes on systems using hyperthreading

Angelo Naselli anaselli at linux.it
Fri Nov 24 09:25:01 GMT 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From anaselli linux it  2006-11-24 10:24 -------
> qDebug() statement are used in Qt doc with QThread example. It must be thread-safe. 

Right, I should read docs first, next time ;)
> But the syntax is more like printf(), not really C++ like kdDebug().

That could be a problem, anyway. How can you be sure all the kipi's developer
will use qDebug instead of kdDebug?

I do believe kdDebug developers should be aware of the problem and provide
a thread safe solution, if the attached patches could be useful for them they could
use those ones, IMO.

Another possible way could be having a "stringstream" for any threads in a map by thread id
and sinchronize the access to the output every time an eot/eol/eof is coming 
(overload of overflow method). But I didn't think a lot to a real solution though...


More information about the Digikam-devel mailing list