Commit e6911f6b 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.

Change-Id: I278b67ac050fb5bcb0cb5ee6920c27e446f0f01a
Signed-off-by: default avatarJee Hyeok Kim <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarHabib Virji <>
Reviewed-by: default avatarPhil Coval <>
(cherry picked from commit d1abd0ca)
parent bfeebb2b
......@@ -46,9 +46,15 @@ class RDClient
OCQualityOfService m_qos;
std::shared_ptr<std::recursive_mutex> _csdkLock;
std::weak_ptr<std::recursive_mutex> m_csdkLock;
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()
......@@ -33,8 +33,6 @@
#include "OCException.h"
#include "ocpayload.h"
std::weak_ptr<std::recursive_mutex> m_csdkLock;
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