I have a threaded application, each thread will probably insert specific item into map, or erase its inserted item from map, but for any other threads, they will just use find or traverse the whole map via iterator.
Again, each thread will only insert or erase one its specific item on map.
In such case, should I add lock before insert or erase to avoid race? how about traverse using iterator or find?
HashTable documentation wrote:This class is NOT thread safe.
Users browsing this forum: No registered users and 1 guest