pthread: fix return value of pthread_give/takesemaphore()
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 01:04:08 +0000 (10:04 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:19 +0000 (12:02 +0900)
commit012df53bc5ed3e5a5c33cc5ad85b90ecf31425d3
tree01fe0c4d4ffce743fddfb713ea4e657f87b54bd4
parent80d99a3e840cf30240056359f4f3f6e3c8f66030
pthread: fix return value of pthread_give/takesemaphore()

Add option to pthread_takesemaphore to ignore EINTR or not. All credits
should go to Gregory Nutt who wrote the original commit.

Change-Id: I63be1a48b01b879dea890750001a8f0491ad9976
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported 2c37d369 from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/kernel/pthread/pthread.h
os/kernel/pthread/pthread_completejoin.c
os/kernel/pthread/pthread_condtimedwait.c
os/kernel/pthread/pthread_condwait.c
os/kernel/pthread/pthread_create.c
os/kernel/pthread/pthread_detach.c
os/kernel/pthread/pthread_initialize.c
os/kernel/pthread/pthread_join.c
os/kernel/pthread/pthread_mutexlock.c