I have a scenario where several threads are written to a shared buffer (card), each thread may or may not have the same key. Can someone please advise whether to use boost :: shared_mutex or just boost :: mutex? I understand that boost :: shared_mutex is for one writer and several readings, which are not what I want. Does this make boost :: mutex more suitable for this scenario?
early
Yes, boost::shared_mutex not your case, since you do not have clean readers and you have many writers. Just use boost::mutex to provide exclusive access to shared data.
boost::shared_mutex
boost::mutex
Source: https://habr.com/ru/post/1498665/More articles:How to use JAXB / XJC to convert an XML file to an object? - javaCreating a custom TListBoxItem with this example and problems with the fontColor property - delphihttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1498661/edit-hgrc-of-repository-on-bitbucket&usg=ALkJrhi_5kLMrdJbnWKXIESHJ-e5zlazzwSaving auto-increment mySQL identifiers? - sqlphpDocumentor does not override parent class documents - phpMemory allocation - how can 15 GB be equal to 2 GB? - c ++Getting json return type and html return in one action - jsonZub Foundation and events on downloadable ajax content - javascriptFast line output C ++ - c ++IPython, Sage, Dependencies, Anaconda and package integration? - mercurialAll Articles