Liste des Groupes | Revenir à c arch |
Agreed. Humm... The CAS is interesting to me.Most likely LL/SC in the implementation. If you are calling
atomic_compare_exchange_weak
atomic_compare_exchange_strong
The weak one can fail spuriously... Akin to LL/SC in a sense?
atomic_compare_exchange_weak_explicitNo sure why that is there. Possibly for non loop usages.
atomic_compare_exchange_strong_explicit
A membar for the success path and one for the failure path. Oh that's fun. Sometimes I think its better to use relaxed for all of the atomics and use explicit barriers ala atomic_thread_fence for the order. Well, that is more in line with the SPARC way of doing things... ;^)
Les messages affichés proviennent d'usenet.