[Qt-interest] Qt and TLSF
Arnold Krille
arnold at arnoldarts.de
Fri May 29 01:10:30 CEST 2009
On Thursday 28 May 2009 21:55:10 RZ wrote:
> in one of our projects we are using TLSF (Memory Allocator for
> Real-Time). Also a Qt application (including GUI) is compiled and run
> using TLSF.
> But we had to notice are very unstable behaviour (a lot of random
> crashes inside the Qt libraries). Does anybody have experiences using
> such memory allocators with Qt? Or is this even impossible?
I haven't yet used anything else then the standard memory allocators. But:
"Weird crashes" in combination with real-time and most probably multiple
threads does ring the "thread safety" bell.
While most of Qt is reentrant, only very few parts are thread safe. So you
have to add lots of mutexes/locks or, when moving data between threads, I went
for the fast shallow copies with atomic reference counting to pass data-
pointers encapsulated in references.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090529/1554f549/attachment.bin
More information about the Qt-interest-old
mailing list