mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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:
+1
-1
@@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user