Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Pre-Sales Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Pre-Sales Technical Support
Subject Topic: main callback handler threading Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jmatthewsr
Junior
Junior


Joined: April 09 2008
Posts: 40
Posted: April 28 2008 at 11:59am | IP Logged Quote jmatthewsr

The help file states:

"The event callback is non-reentrant. In other words, the media engine has serialized access to your callback event handler procedure"

Does this mean that calls to the event handler will only be called by one thread at a time? In other words, will more than 1 thread in the media engine ever call the callback at the same time?

thanks,
-justin
Back to Top View jmatthewsr's Profile Search for other posts by jmatthewsr
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: April 28 2008 at 12:14pm | IP Logged Quote support

Hi Justin,

Different threads internal to the media engine may call your “main event callback” handler. To say it a different way: Your main callback handler can execute in the context of different internal media engine threads.

<<< You
Does this mean that calls to the event handler will only be called by one thread at a time?

Support >>>
Yes, exactly. Your main callback handler must fully return execution back to the media engine before it will be called again by the media engine (regardless of media engine thread context that calls it).


<<< You
In other words, will more than 1 thread in the media engine ever call the callback at the same time?

Support >>>
No, never.


Support

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights