[Interest] QSqlDatabase and Multithreading

Philipp Kursawe phil.kursawe at gmail.com
Wed Jan 22 16:52:22 CET 2014


The Win32 implementation uses a mutex, which is used for inter-process
sync. Inside a process its a waste. Better use CriticalSection, its a
kernel object and several times faster then a mutex on Win32.


On Wed, Jan 22, 2014 at 4:45 PM, Thiago Macieira
<thiago.macieira at intel.com>wrote:

> On quarta-feira, 22 de janeiro de 2014 16:39:24, Philipp Kursawe wrote:
> > Your database class uses a std::recursive_mutex (not the Qt mutex, its a
> > resource waster!)
>
> Do you have any numbers? QMutex is very small and optimised (on Linux).
>
> QWaitCondition suffers because QMutex is so small.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140122/401ce01c/attachment.html>


More information about the Interest mailing list