Fix potential crashes caused by [2300]
Brought to you by:
orenmnero
Current message_sorter class uses simple reference counting to manage its internal buffer. This might cause crashes in multi-threaded environment: http://www.quickfixengine.org/forum/comments.php?DiscussionID=398&page=1#Item_2 . This patch adds the new SharedArray class which uses atomic reference counting and should resolve issues with stability.
Last edit: Viktor Pogrebnyak 2013-06-17
Added new patch, compatible with the latest revision.
Changes:
1) small refactoring of the "shared_array" class;
2) "atomic_count" class uses interlocked functions on Win32;
3) using atomic_count class from Boost library if ENABLE_BOOST_ATOMIC_COUNT is defined