[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a question about _Thread_Dispatch_disable
- Date: Tue, 29 May 2007 18:26:24 +0800 (CST)
- From: yanmiaobest at 163.com (yanmiaobest)
- Subject: a question about _Thread_Dispatch_disable
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...