[Development] New global static implementation

Olivier Goffart olivier at woboq.com
Fri Dec 23 15:37:31 CET 2011


On Friday 23 December 2011 11:30:08 Thiago Macieira wrote:
> Uploaded at:
> 
> https://qt.gitorious.org/~thiago-intel/qt/thiago-intels-qtbase/commits/new-
> qglobalstatic

I'm trying to review:

You cannot use the QMutexPool in the QGlobalStaticControler.
Because the creation of the global static will run user code that might create 
others global statics, or do something else that will also use the same mutex 
pool. Or just locking other mutex.  (hence locking multilples mutex, which may 
mean deadlock)
(Especially since global statics might also be created under a lock or 
something)





More information about the Development mailing list