a question about _Thread_Dispatch_disable

yanmiaobest yanmiaobest at 163.com
Tue May 29 10:26:24 UTC 2007


Hi all,
 I am studying RTEMS supercore code. A question comes up.
 If variables that shared among threads should be protected by _Thread_Disale_dispatch()/_Thread_Enable_dispatch()?
 but when executing those two functions, there is no instructions to disable interrupt, what if an interrupt occures in those functions and modifies the _Thread_Dispatch_disable_level ?
 When to use _ISR_Disable and when to use _Thread_Dispatch_disable ?   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070529/8a11bbbd/attachment.html>


More information about the users mailing list