IOT-1828 Add oc_mutex_new_recursive 05/19605/5
authorWay Vadhanasin <wayvad@microsoft.com>
Thu, 27 Apr 2017 18:31:13 +0000 (11:31 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 22 May 2017 11:48:16 +0000 (11:48 +0000)
commit8ee6e7a8f40f9cd6791d5d3f6239bb13139843cf
treebcbed90ea27ca84e9a813398cb0a01f04af8238b
parent635c82199728ad12cd20f4c52f345b1c8195c8bb
IOT-1828 Add oc_mutex_new_recursive

This change adds ability to create oc_mutex with recursive support.

The function oc_mutex_new_recursive() will be used by a later change
in OCStack to remove the responsibility of calling OCProcess from
applications so that they don't have to call it in an endless loop.

Change-Id: I0d60188af9bce866f5ba18800292204c78daba11
Signed-off-by: Way Vadhanasin <wayvad@microsoft.com>
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19605
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: Oleksii Beketov <ol.beketov@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/c_common/octhread/include/octhread.h
resource/c_common/octhread/src/noop/octhread.c
resource/c_common/octhread/src/posix/octhread.c
resource/c_common/octhread/src/windows/octhread.c