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.macie...@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@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest