Can Q_GLOBAL_STATIC replace KStaticDelete ?
thiago at kde.org
Wed Jan 17 16:52:27 GMT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel