mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sigtimedwait: When timer expires, up_unblock_task() is called. This is okay in the single CPU case because interrupts are disable in the timer interrupt handler. But it is insufficient in the SMP case. enter_ and leave_critical_section() must be called in order to manage spinlocks correctly.
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
* OK on success; or ERROR on failure
|
||||
*
|
||||
* Assumeptions:
|
||||
* Interrupts are disabled.
|
||||
* Executing within a critical section established by the caller.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user