[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:       Matthias Kretz <kretz () kde ! org>
Date:       2007-01-17 17:44:40
Message-ID: 200701171844.46639.kretz () kde ! org
[Download RAW message or body]


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)                            <><
http://Vir.homelinux.org/
MatthiasKretz@gmx.net, kretz@kde.org,
Matthias.Kretz@urz.uni-heidelberg.de

[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