4 ms·
i++ is atomic in most cases, unless i is an excessively wide integer, in abort I think they lock anyway so it doesn't matter (at least in uclibc)
by leif 15y ago
i++ is atomic in most cases, unless i is an excessively wide integer, in abort I think they lock anyway so it doesn't matter (at least in uclibc)
- jbri 15y agoActually, while the write itself is generally atomic, most systems don't guarantee that the entire increment operation is (for performance reasons). And since abort still needs to work even without locks and on every platform...