Skip to content

C++ header only implementation of a ConcurrentMap wrapper.

License

Notifications You must be signed in to change notification settings

BKSpek/ConcurrentMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ConcurrentMap

A single header implementation of a ConcurrentMap. The implementation is in the form of a wrapper around std::map, extending its functionality by providing "safe" variants of common operations.

In order to guarantee thread safety when not using "safe" variants you must acquire locks on the map. For example, if you want to iterate through the map, you should acquire a shared_lock first. If you want to iterate as well as modify (erase / insert) elements, you should acquire a unique_lock first. The way you release the lock is by either having it go out of scope, or explicitly unlocking it.

To view an example of usage click here

About

C++ header only implementation of a ConcurrentMap wrapper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages