11 ms·
If you need thread-safety you must at least use atomics anyway Either your platform has transactional memory, double-wide cas or you need to fall back to locks.
by the8472 7y ago
If you need thread-safety you must at least use atomics anyway Either your platform has transactional memory, double-wide cas or you need to fall back to locks.
- gpderetta 7y agoUsing double wide cas for atomic pointer store and loads is a big pessimization though.