3 ms·
Why use atomics if you don't need them? There really should just be two different shared pointer types.
by eddd-ddde 10mo ago
Why use atomics if you don't need them? There really should just be two different shared pointer types.
- accelbred 10mo agoI wouldn't mind two types. I mind shared pointer not using atomics if I statically link pthreads and dlload a shared lib with them, or if Im doing clone3 stuff. Ive had multiple situations in which the detection method would turn off atomic use when it actually needs to be atomic.