← Back to context

Comment by eddd-ddde

4 hours ago

Why use atomics if you don't need them? There really should just be two different shared pointer types.

I 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.