Re: [Quickfix-developers] Threading issue
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-09-28 17:12:28
|
Slight correction on my previous post. To use the SynchronizedApplication, continue to inherit from Application, but you must pass the Initiator a SynchronizedApplication which wraps around you application. i.e. // inherits from FIX::Application MyApplication application; FIX::SynchronizedApplication syncrhonizedApplication( application ); // pass in synchronizedApplication to ThreadedSocketInitiator in place of application On Sep 28, 2004, at 11:12 AM, Sharma Himanshu wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: > http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, > > I am using QuickFIX v1.8.0. The configuration file is defining more > that one session. The session's socket initiator class > ThreadedSocketInitiator. > > I have overloaded the fromApp(). Here I am trapping the messages > coming from counterparty engine and pushing into a queue. > > void myclass::fromApp(const Message & msg, const SessionID & session) > { > receive(msg); > } > > ... > > void receive(Message& msg) > { > //add to queue. > add_queue(msg); > } > > Question: > > 1. Is there any reason to assume this would cause any threading > issues? Is fromApp() thread-safe? > > 2. Is there any limitation in quickfix that would limit the number of > messages it can handle? > > Thanks in advance, > Himanshu > > _________________________________________________________________ > Seized by wanderlust? http://www.msn.co.in/Travel/ Have the best > vacation ever. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |