3 ms·
Not all platforms have atomics; you'll mostly encounter this on embedded systems. That said, use them if you can! Regarding Rc, the overhead is more in memory
by llogiq 5y ago
Not all platforms have atomics; you'll mostly encounter this on embedded systems. That said, use them if you can!
Regarding Rc, the overhead is more in memory than time, which usually has a non-linear relation to performance, so any overhead is really hard to guess or estimate.