如果有多个线程访问一个映射对象,但是我可以确保这些线程中的任何一个访问都不会具有相同的键,并且访问方式就像这样:
操作会导致同步问题吗?
//find value by key
//if find
// erase the object or change the value
//else
// add new object of the key
操作会导致同步问题吗?