1. RD publish fail due to lack of shared point lock logic.
https://jira.iotivity.org/browse/IOT-1592
Change-Id: I278b67ac050fb5bcb0cb5ee6920c27e446f0f01a
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14647
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
{
private:
OCQualityOfService m_qos;
+ std::shared_ptr<std::recursive_mutex> _csdkLock;
+ std::weak_ptr<std::recursive_mutex> m_csdkLock;
+
public:
- RDClient(OCQualityOfService qos = OC_NA_QOS) : m_qos(qos)
+ RDClient(OCQualityOfService qos = OC_NA_QOS)
+ : m_qos(qos),
+ _csdkLock{ std::make_shared<std::recursive_mutex>() }
{
+ m_csdkLock = _csdkLock;
}
static RDClient& Instance()
#include "OCException.h"
#include "ocpayload.h"
-std::weak_ptr<std::recursive_mutex> m_csdkLock;
-
using namespace OC;