Re: [Quickfix-developers] Faster logons
Brought to you by:
orenmnero
|
From: Dale W. <wil...@oc...> - 2005-11-03 18:54:57
|
Brian Erst wrote: ><SNIP> >I would also suggest that the use of process_sleep is a bad idea - >whenever I need to code a sleep-type function, I use a mutex and a >WaitForSingleObject with the sleep time as the timeout. That way, I can >interrupt the sleep (by triggering the mutex) if the reason for the >sleep has gone away (or so I don't have to wait 30 seconds to bring my >application down if I'm sleeping). Makes things much more responsive. > > An excellent idea with one very important drawback. WaitForSingleObject with a timeout is a WIN32 concept. It is possible, but not necessarily easy, to code an equivalent functionality on a posix system using |pthread_cond_timedwait. If QuickFIX were going to use this technique someone would have to beef up its cross-platform thread synchronization support. Dale | >- Brian Erst >Thynk Software, Inc. > > > > -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |