collections - C++ Thread-Safe Map -
Does anyone know that I wrap the STL map and why does it make the thread secure? When I say the thread is safe I mean that it only provides serial access to the map, one thread at a time. Better, only STLs should be used or promoted in this map.
You do not meet the criteria specified, but you can look at the containers so called < Code> concurrent_hash_map , which allows multiple threads to use concurrent data in the map. There are some details, but everything is well documented and you can give the idea of "concurrent container" depending on your needs it can be completely inappropriate ...
Comments
Post a Comment