Re: [Quickfix-developers] Changing to ThreadedSocketAcceptor from SocketAcceptor
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2007-08-14 16:13:03
|
On 8/10/07, Magnus Bergstrom <ber...@gm...> wrote: > > > Could I basically just change my objects to the multi-threaded object and > start up without any unexpected behaviour from QuickFix? Thats the intent of the design. It should just be a drop-in replacement. Note also the SynchrnoizedApplication class. This contains a mutex that is locked before every call to your Application's to*/from* functions, making for a crude but thread-safe Application when used in the multi-threaded case. This way you don't need to worry about locking your own data structures, though you probably gain zero performance over the single-threaded case and could even lose some. -- Caleb Epstein |