concurrent_hash_map() -- sorted insertion, sorting and thread-safe iteration

Raf Schietekat
Total Points:
16,805
Status Points:
16,805
Black Belt
July 5, 2009 3:15 AM PDT
Rate
 
#3 Reply to #2
"Why are you comparing C++ map to the TBB hash_map when C++ also has a hash_map?"
Not officially yet, but it does seem widely supported, so my answer turned out to be somewhat pedantic, sorry.

"As far as I know C++ hash_map can be kept sorted or at least I have managed to do it with Microsoft implementation when I was experimenting with it. Perhaps that was an error or a pure luck?"
If this is not luck (a 17% chance with 3 entries), it still seems suboptimal and probably nonportable.

Intuitively I would presume that a locked std::map is up to the task of tracking file system directory events as well as user events, so I would start with that and then see/profile what happens, unless someone has a better idea.

Intel Software Network Forums Statistics

8472 users have contributed to 31603 threads and 100652 posts to date.
In the past 24 hours, we have 31 new thread(s) 115 new posts(s), and 163 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member Edwin B. Ramayya