3 ms·
You sometimes do not need a lock, depending. Scoped threads can have two different threads modify two different elements of a vector simultaneously without lock
by steveklabnik 8y ago
You sometimes do not need a lock, depending. Scoped threads can have two different threads modify two different elements of a vector simultaneously without locks, for example.