change new NSMessage to NSCreateMessage.
Change-Id: Ic6639f936504a40fe5b40a2ed0efdabf4d6121c7
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10751
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
if (id == msgID)
{
std::cout << "ExpectCallNotifyOnConsumerByAcceptIsTrue" << std::endl;
+ responseCon.notify_all();
}
- responseCon.notify_all();
});
NSAcceptSubscription(g_consumer, true);
- NSMessage * msg = new NSMessage();
- msgID = 10;
+ NSMessage * msg = NSCreateMessage();
+ msgID = (int)msg->messageId;
msg->title = strdup(std::string("Title").c_str());
msg->contentText = strdup(std::string("ContentText").c_str());
msg->sourceName = strdup(std::string("OCF").c_str());