Skip to content

Conversation

@anchao
Copy link
Contributor

@anchao anchao commented Dec 29, 2024

Summary

sched/semaphore: tick wait 0 timeout should be safe in interrupt context

  1. remove up_interrupt_context() check, which should be safe in interrupt context
  2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an [email protected]

Impact

N/A

Testing

nxsem_tickwait(&sem, 0) in isr context

@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Dec 29, 2024
1. remove up_interrupt_context() check, which should be safe in interrupt context
2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit dc82a29 into apache:master Dec 30, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants