mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c.
This commit is contained in:
@@ -903,15 +903,24 @@ o pthreads (sched/pthreads libs/libc/pthread)
|
||||
|
||||
1. The Use is not fully verified. How are these interfaces
|
||||
used? How should they be tested?
|
||||
|
||||
2. These interfaces depend on architecture specific support
|
||||
support fraom each architecture that support is not be
|
||||
fully available to the pthread library in all cases.
|
||||
|
||||
There should a setting, say CONFIG_ARCH_HAVE_TESTSET=y
|
||||
that indicates if the architect provides up_testset().
|
||||
|
||||
3. It is also restricted to CONFIG_BUILD_FLAT because the
|
||||
critical test and set function (up_testset()) as
|
||||
prototyped in include/nuttx/spinlock() does not permit an
|
||||
inline function or macro to be used in user-mode
|
||||
application space.
|
||||
|
||||
Update: A better alternative would be to move the CPU-
|
||||
depending up_testset() implementation from the arch/
|
||||
directories and into libs/libc/machine.
|
||||
|
||||
For these reasons, the selection is marked EXPERIMENTAL.
|
||||
Status: Open
|
||||
Priority: Low. These are new interfaces and not yet in wide use. The
|
||||
|
||||
Reference in New Issue
Block a user