| Author |  | 
      
        | jmatthewsr Junior
 
  
 
 Joined: April 09 2008
 Posts: 40
 | 
          The help file states:
           | Posted: April 28 2008 at 11:59am | IP Logged |   |  
           | 
 |  
 "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 |     | 
       
       
        |  | 
        | support Administrator
 
  
 
 Joined: January 26 2005
 Location: United States
 Posts: 1666
 | 
          Hi Justin,
           | Posted: April 28 2008 at 12:14pm | IP Logged |   |  
           | 
 |  
 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 |       | 
       
       
        |  |