[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Can Q_GLOBAL_STATIC replace KStaticDelete ?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2007-01-17 16:52:27
Message-ID: 200701171752.39420.thiago () kde ! org
[Download RAW message or body]


Matthias Kretz wrote:
>On Wednesday 17 January 2007 12:51, Matthias Kretz wrote:
>> I'm working on a K_GLOBAL_STATIC macro right now...
>
>Patch is attached.

You used q_atomic_test_and_set_ptr in your code. This QAtomic code is the 
whole reason why Q_GLOBAL_STATIC isn't documented right now: all of the 
atomic code isn't documented.

Using Q_GLOBAL_STATIC is already risky, but if we get a promise it won't 
change (and it probably won't), we can use it. But using the low-level 
atomic methods may be even more of a problem...

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic