[Mesa-dev] Atomics not really atomic?

Lauri Kasanen cand at gmx.com
Wed Jan 22 05:44:28 PST 2014


Hi,

The two atomic helpers in u_atomic.h, p_atomic_set and p_atomic_read,
are just passthrough macros, without the atomic guarantees. Why?

I believe I saw some corruption because of this, where a 64-bit 
write on a 32-bit platform may not be naturally atomic.

- Lauri


More information about the mesa-dev mailing list