Commit d1abd0ca authored by Jee Hyeok Kim's avatar Jee Hyeok Kim

[IOT-1592] Fix rd publish fail

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: default avatarJee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14647Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarHabib Virji <habib.virji@samsung.com>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
parent 37c7550b
...@@ -46,9 +46,15 @@ class RDClient ...@@ -46,9 +46,15 @@ class RDClient
{ {
private: private:
OCQualityOfService m_qos; OCQualityOfService m_qos;
std::shared_ptr<std::recursive_mutex> _csdkLock;
std::weak_ptr<std::recursive_mutex> m_csdkLock;
public: 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() static RDClient& Instance()
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "OCException.h" #include "OCException.h"
#include "ocpayload.h" #include "ocpayload.h"
std::weak_ptr<std::recursive_mutex> m_csdkLock;
using namespace OC; using namespace OC;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment