Menu

#23 Fix potential crashes caused by [2300]

open
nobody
None
5
2013-06-17
2012-03-25
No

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.

Discussion

  • Viktor Pogrebnyak

     

    Last edit: Viktor Pogrebnyak 2013-06-17
  • Viktor Pogrebnyak

    • summary: Fix crashes caused by [2300] --> Fix potential crashes caused by [2300]
     
  • Viktor Pogrebnyak

    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

     

Log in to post a comment.