- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to implement a cache with concurrent_hash_map. But I need be able to scan the hash map even with concurrent remove and insertion. Are there some iterator I CAN use?
The iteratotrmustguarantee to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
Thanks.
-Yuan
I would like to implement a cache with concurrent_hash_map. But I need be able to scan the hash map even with concurrent remove and insertion. Are there some iterator I CAN use?
The iteratotrmustguarantee to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
Thanks.
-Yuan
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page