[Quickfix-developers] quickfix threads
Brought to you by:
orenmnero
From: Vincent P. <vpr...@ph...> - 2008-05-27 20:46:04
|
I'm writing test code for my matcher and I'm storing data in STL containers for comparing the responses passed back in ExecutionReport message. Before a new OrdStatReq message is sent, for example, the STL container is checked to make sure that any expected OrdStatReq message like the one about to be generated have been processed already. If not, my code calls process_sleep(1) until the message is received. The problem is the message never arrives. I'm guessing the reason is because I'm sleeping in the onMessage of the ExecutionReport message and the message it is waiting for can't get processed until the current messages finishes processing. So, I guess I'm wondering if the reason the expected ExecutionReport message isn't being processed is because the code is hung up in the sleep loop of the existing ExecutionReport message. My guess is that's the case, but I thought I'd ask because it seems there are multiple threads handling the FIX messages. If anyone has any comments on how threads work in quickfix, I'd be interested in knowing that. Thanks, -- Vincent |