Is there any ConcurrentHashMap for c++ implementation or something of similar anywhere?
I can't understand why multithreading in c++ is so hard than Java!
Threads arent really supported in C++ so there isnt anything in the standard about thread safe containers. People have obviously made them before.
I think this thing from Intel may help http://www.threadingbuildingblocks.org/
I have not used it myself yet so no guarentees.
You can also just wrap any container in your own class with a semaphore to make it thread safe.
Good luck.