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.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2024-11-15 10:30:51 +08:00
committed by Xiang Xiao
parent f1a57f4265
commit fe2af95222
3 changed files with 93 additions and 45 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
*/
# include <arch/spinlock.h>
# include <nuttx/spinlock_type.h>
#endif
/****************************************************************************