Fix invoking attribute updated listener of RCSResourceObject.
authorcoderhyme <jhyo.kim@samsung.com>
Tue, 22 Sep 2015 23:48:36 +0000 (16:48 -0700)
committerMadan Lanka <lanka.madan@samsung.com>
Wed, 23 Sep 2015 01:13:25 +0000 (01:13 +0000)
commit2e89bcf2c559ff013cbc6c9d9c0f414371ef0b16
tree1efe228bb1bd173a974d96950bf291ec8fb97cee
parentecd363e74089a265b2f5ef5ec63117bf07ceb74f
Fix invoking attribute updated listener of RCSResourceObject.

There was a possible deadlock issue when the callback is invoked.
The mutex should be unlocked when the control is passed by invoking a callback to the users so that an object of the class can be used for the users without any concern regarding deadlock.

Change-Id: Iea35ab16858c7a8be67b87726b0e25ea6e94d73c
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2959
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/resource-encapsulation/include/RCSResourceObject.h
service/resource-encapsulation/src/serverBuilder/src/RCSResourceObject.cpp