Can Q_GLOBAL_STATIC replace KStaticDelete ?
kretz at kde.org
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 gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel