pthread: backport pthread mutex related patches
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 03:55:50 +0000 (12:55 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:19 +0000 (12:02 +0900)
commitd822f5399b45f2a949af4e476039876decfe23c1
tree2187dd5a54cfc5dafacb233932a44f34f46b62b1
parent012df53bc5ed3e5a5c33cc5ad85b90ecf31425d3
pthread: backport pthread mutex related patches

This patch backports several commits from NuttX, that fixes pthread
mutex issues. Applying only one patch causes compilation errors. So
these patches are submitted in a single commit. All credits should go to
Gregory Nutt who wrote the original commits.

Change-Id: I5dfb4f68a253228fa55335dd6dd4e4413c690f45
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported a1fbc2ad2c37d3696e623ce0fe03ef025a69453e34c5e1c18b23c16b86ab384d and 8b3c554e. from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
15 files changed:
os/include/tinyara/sched.h
os/kernel/pthread/Make.defs
os/kernel/pthread/pthread.h
os/kernel/pthread/pthread_cancel.c
os/kernel/pthread/pthread_condtimedwait.c
os/kernel/pthread/pthread_condwait.c
os/kernel/pthread/pthread_exit.c
os/kernel/pthread/pthread_mutex.c [new file with mode: 0644]
os/kernel/pthread/pthread_mutexconsistent.c
os/kernel/pthread/pthread_mutexinconsistent.c [new file with mode: 0644]
os/kernel/pthread/pthread_mutexinit.c
os/kernel/pthread/pthread_mutexlock.c
os/kernel/pthread/pthread_mutextrylock.c
os/kernel/pthread/pthread_mutexunlock.c
os/kernel/sched/sched.h