<DIV>Hi all,<BR> I am studying RTEMS supercore code. A question comes up.<BR> If variables that shared among threads should be protected by _Thread_Disale_dispatch()/_Thread_Enable_dispatch()?<BR> 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 ? <BR> When to use _ISR_Disable and when to use _Thread_Dispatch_disable ?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://event.mail.163.com/chanel/xyq.htm?from=163_NO2" target="_blank"><span style="text-decoration:underline; color:blue">梦幻西游,千万人的选择,你的选择 </span> </a>