Can Q_GLOBAL_STATIC replace KStaticDelete ?

Matthias Kretz kretz at
Wed Jan 17 17:44:40 GMT 2007

OK, I'm open for suggestions how to do it without q_atomic_test_and_set_ptr. 
For my use cases it wouldn't need to be thread safe...

On Wednesday 17 January 2007 17:52, Thiago Macieira wrote:
> 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...

Matthias Kretz (Germany)                            <><
MatthiasKretz at, kretz at,
Matthias.Kretz at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list