-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add spinlock_type.h #14801
base: master
Are you sure you want to change the base?
add spinlock_type.h #14801
Conversation
reason: Due to incomplete handling of spinlock_t in arch/spinlock.h, it should not be used directly by external code. Furthermore, because pthread.h and nuttx/spinlock.h have a circular dependency, pthread.h cannot successfully include nuttx/spinlock.h. Therefore, we have split spinlock_type.h from spinlock.h. Signed-off-by: hujun5 <hujun5@xiaomi.com>
[Experimental Bot, please feedback here] No. This PR description lacks crucial details required by the NuttX guidelines. Here's why and what's missing:
In short, this PR description needs significantly more detail to meet NuttX requirements. Focus on providing concrete information and evidence to support the changes. |
But the circular dependency doesn't introduce any bad side effect now? |
let's hold this patch until the recursive happen? |
ok |
Summary
add spinlock_type.h
reason:
Due to incomplete handling of spinlock_t in arch/spinlock.h, it should not be used directly by external code.
Furthermore, because pthread.h and nuttx/spinlock.h have a circular dependency, pthread.h cannot successfully include nuttx/spinlock.h. Therefore, we have split spinlock_type.h from spinlock.h.
Impact
spinlock
Testing
ci