pthread/mutex: add an option to support both unsafe and robust mutexes
authorEunBong Song <eunb.song@samsung.com>
Thu, 13 Apr 2017 03:59:14 +0000 (12:59 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:19 +0000 (12:02 +0900)
commitc207688ca5959fdc85f08ca8b5c39397757957bf
tree56bd623a334ca7c2719916c26f7812863e771a26
parentb8f9b62ba3b04d4e018db1b64a294d34fd5e85b9
pthread/mutex: add an option to support both unsafe and robust mutexes

This patch adds an option to support both unsafe and robust mutexes via
pthread_mutexattr_get/setrobust(). All credits should go to Gregory Nutt
who wrote the original commit.

Change-Id: Iff8d494bc79aa0fa414c111bab524ff29714c96b
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported 666208cf from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/kernel/pthread/pthread_mutexinit.c