[Development] New global static implementation
thiago.macieira at intel.com
Fri Dec 23 19:33:35 CET 2011
On Friday, 23 de December de 2011 15.37.31, Olivier Goffart wrote:
> 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
When I wrote the implementation, the mutex pool was safe and never ran global
I'd support going back to that.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/development/attachments/20111223/2ef4c6d5/attachment.bin
More information about the Development