[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a question about _Thread_Dispatch_disable



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://rtems.rtems.org/pipermail/rtems-users/attachments/20070529/8a11bbbd/attachment.html