[Development] New global static implementation
Thiago Macieira
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
> something)
When I wrote the implementation, the mutex pool was safe and never ran global
statics.
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: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111223/2ef4c6d5/attachment.sig>
More information about the Development
mailing list