Use Q_GLOBAL_STATIC where K_GLOBAL_STATIC is not needed?

Thiago Macieira thiago at
Thu Feb 10 22:41:13 GMT 2011

On Thursday, 10 de February de 2011 17:11:42 Michael Pyne wrote:
> I say this as someone who uses QAtomicInt assuming a mode of operation that
> is  not explicitly documented (i.e. it is safe to initialize its memory
> with 0 and avoid running the ctor). If Nokia changes it I would grumble,
> but it would by my problem, not theirs.

That works in all platforms except HP PA-RISC. In that platform, you have to 
initialise the 4 other words to -1.
Thiago Macieira - thiago (AT) - thiago (AT)
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- 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: <>

More information about the kde-core-devel mailing list