Better documentation about multimap usage

This commit is contained in:
Gioacchino Mazzurco 2017-02-27 10:31:26 +01:00
parent 2b1c9b74d1
commit f19fe56a93

View File

@ -172,8 +172,12 @@ private:
/** /**
* @brief Ingoing mail and receipt processing queue. * @brief Ingoing mail and receipt processing queue.
* Items are saved in config and then deleted in destructor for consistence * At shutdown remaining items are saved in config and then deleted in
* accross RetroShare shutdowns. * destructor for consistence accross RetroShare instances.
* In order to avoid malicious messages ( non malicious collision has 1/2^64
* probablity ) to smash items in the queue thus causing previous incoming
* item to not being processed and memleaked multimap is used instead of map
* for incoming queue.
*/ */
typedef std::unordered_multimap<RsGxsMailId, RsGxsMailBaseItem*> inMap; typedef std::unordered_multimap<RsGxsMailId, RsGxsMailBaseItem*> inMap;
inMap ingoingQueue; inMap ingoingQueue;