This is an automated email from the ASF dual-hosted git repository.
acassis pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 5e117fda60c mtdconfig: support ram_mtdconfig device && lomtdconfig
device
add 5051721298d sched/pthread: move pthread mutex from syscall to
user-space
No new revisions were added by this update.
Summary of changes:
include/nuttx/mutex.h | 4 --
include/nuttx/pthread.h | 54 +++++++++++++++
include/nuttx/sched.h | 7 --
include/nuttx/tls.h | 9 +++
include/sys/syscall_lookup.h | 9 +--
libs/libc/pthread/CMakeLists.txt | 12 +++-
libs/libc/pthread/Make.defs | 6 ++
{sched => libs/libc}/pthread/pthread_mutex.c | 77 +++++-----------------
.../libc/pthread/pthread_mutex_consistent.c | 7 +-
.../libc/pthread/pthread_mutex_destroy.c | 7 +-
.../libc/pthread/pthread_mutex_init.c | 5 +-
.../libc/pthread/pthread_mutex_timedlock.c | 5 +-
.../libc/pthread/pthread_mutex_trylock.c | 10 +--
.../libc/pthread/pthread_mutex_unlock.c | 4 +-
sched/init/nx_start.c | 4 --
sched/pthread/CMakeLists.txt | 7 +-
sched/pthread/Make.defs | 4 +-
sched/pthread/pthread.h | 53 ---------------
sched/pthread/pthread_condclockwait.c | 1 +
sched/pthread/pthread_condwait.c | 1 +
sched/pthread/pthread_create.c | 4 --
.../pthread/pthread_mutexinconsistent.c | 64 ++++++++++--------
sched/sched/sched_releasetcb.c | 4 ++
sched/task/task_fork.c | 4 --
sched/task/task_init.c | 4 --
sched/tls/tls_dupinfo.c | 4 ++
sched/tls/tls_initinfo.c | 4 ++
syscall/syscall.csv | 7 +-
tools/pynuttx/nxgdb/protocols/thread.py | 1 -
29 files changed, 166 insertions(+), 216 deletions(-)
rename {sched => libs/libc}/pthread/pthread_mutex.c (82%)
rename sched/pthread/pthread_mutexconsistent.c =>
libs/libc/pthread/pthread_mutex_consistent.c (97%)
rename sched/pthread/pthread_mutexdestroy.c =>
libs/libc/pthread/pthread_mutex_destroy.c (97%)
rename sched/pthread/pthread_mutexinit.c =>
libs/libc/pthread/pthread_mutex_init.c (98%)
rename sched/pthread/pthread_mutextimedlock.c =>
libs/libc/pthread/pthread_mutex_timedlock.c (98%)
rename sched/pthread/pthread_mutextrylock.c =>
libs/libc/pthread/pthread_mutex_trylock.c (96%)
rename sched/pthread/pthread_mutexunlock.c =>
libs/libc/pthread/pthread_mutex_unlock.c (98%)
copy libs/libc/semaphore/sem_destroy.c =>
sched/pthread/pthread_mutexinconsistent.c (58%)