[Quickfix-developers] are onMessage callbacks multithreaded?
Brought to you by:
orenmnero
From: fopguy <ma...@tr...> - 2008-04-02 20:58:47
|
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. |