EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Thread context

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#8359
Posted: 12/03/2008 09:39:20
by David Perkins (Standard support level)
Joined: 12/03/2008
Posts: 17

Hello

Can you tell me which of the events/funcs are called by MsgConnect from a different thread to the one containing the Messenger?

Thanks.
#8368
Posted: 12/04/2008 04:37:35
by Eugene Mayevski (EldoS Corp.)

InetTransport's OnConnect/OnDisconnect are called from context of the worker thread.

Events of MCMessenger and MCQueue and also callbacks passed to SendMessageTimeoutCallback are called in context of the thread in which you call DispatchMessages or other method of MCMessenger.



Sincerely yours
Eugene Mayevski
#8369
Posted: 12/04/2008 04:55:11
by David Perkins (Standard support level)
Joined: 12/03/2008
Posts: 17

Thanks. Can I assume that any delays I produce when processing incoming messages will not delay receiving new messages by the worker thread?
#8372
Posted: 12/04/2008 05:22:59
by Eugene Mayevski (EldoS Corp.)

Yes, speed of processing the message won't affect transfers. However, if processing of some message takes long time (dozens of seconds or even minutes), then you should consider complicating the scheme by adding asynchronous processing.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 3001 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!