mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +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:
@@ -224,7 +224,7 @@ FAR struct mqueue_msg_s *mq_msgalloc(void)
|
||||
*
|
||||
* Assumptions/restrictions:
|
||||
* - The caller has verified the input parameters using mq_verifysend().
|
||||
* - Interrupts are disabled.
|
||||
* - Executes within a critical section established by the caller.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user