[Development] Question about QCoreApplicationData::*_libpaths

Kevin Kofler kevin.kofler at chello.at
Thu Jan 21 05:33:51 CET 2016


Marc Mutz wrote:
> You can lock a mutex in the function and unlock it in the shared_ptr's
> deleter.

How can that possibly be faster than atomic reference counting? You have the 
same cross-thread dependence plus a potential wait for the thread to 
actually do its work. Not to mention that mutexes can cause deadlocks, 
atomic reference counts can't.

        Kevin Kofler




More information about the Development mailing list