Re: [Quickfix-developers] are onMessage callbacks multithreaded?
Brought to you by:
orenmnero
From: Shane T. <str...@co...> - 2008-04-02 21:10:08
|
Mark, They are not multithreaded. Unless you have multiple sessions using the ThreadedSocketInitiator which both point to the same method that alters your data, you should be fine. -- Shane Trotter Connamara Systems, LLC On Wed, Apr 2, 2008 at 3:58 PM, fopguy <ma...@tr...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi everyone, > > I was wondering if the "onMessage()" callbacks are multithreaded. > > The reason I'm asking is that I have certain shared variables that I need to > update, and I was wondering if I need to lock them. > > Eg. > > onMessage(FIX::executionReport& report) { > sharedDataStructure.process() > } > > > What if I get 2 execution reports from the server at the same time? Would I > have 2 threads running "onmessage" at the same time? If so, i need to lock > my shared data. > > How does everyone else deal with this issue? > > thanks > > mark > -- > View this message in context: http://www.nabble.com/are-onMessage-callbacks-multithreaded--tp16451428p16451428.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |