pthread: disable priority inheritance for contained semaphore
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 23:50:39 +0000 (08:50 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:21 +0000 (12:02 +0900)
commit045d04d838ba4fdc8a7d2ea448525ac345351b5d
treeadbe31c8b27fc3c6b44aeefc6c220f2852f203e4
parent1236b0e33d61be515ccbacd3b7735f6117ce2c06
pthread: disable priority inheritance for contained semaphore

Provide do-nothing stubs for mutex attribute interfaces if features not
enabled. pthread_cond includes a signaling semaphore and should call
sem_setprotocol.

All credits should go to Gregory Nutt who wrote the original commit.

Change-Id: Ib6bcc4d63e8decd6f60e1bc944aecca88037fdc7
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported 796969f6 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
lib/libc/pthread/Make.defs
lib/libc/pthread/pthread_mutexattr_getprotocol.c
lib/libc/pthread/pthread_mutexattr_setprotocol.c
lib/libc/pthread/pthread_mutexattrgettype.c
lib/libc/pthread/pthread_mutexattrsettype.c
os/include/pthread.h
os/kernel/pthread/pthread_condinit.c