kernel/semaphore: add macros for sem_get/setprotocol()
authorHeesub Shin <heesub.shin@samsung.com>
Thu, 6 Apr 2017 01:11:40 +0000 (10:11 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:11 +0000 (12:02 +0900)
commit0a4d5211a302226c65d7975b00a95f58a3d4c0e3
tree3e222929c986b06fc1c2c9e170c5ef99c80159c0
parent827b3d385f6642bfb8ba8cca4c64795f03c97cd8
kernel/semaphore: add macros for sem_get/setprotocol()

Provide macros for sem_setprotocol() and sem_getprotocol() if priority
inheritance is not enabled. More SEM_PRIO_* definitions to
include/tinyara/semaphore.h.

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

Change-Id: Id0f931210629e5b15db5c659b914794662f04adc
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Shin: backported 97bf82ee from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/include/pthread.h
os/include/semaphore.h
os/include/tinyara/semaphore.h
os/kernel/semaphore/sem_setprotocol.c