update NSAcceptedProviders copy/assign operators 77/25677/3
authorGeorge Nash <george.nash@intel.com>
Wed, 2 May 2018 18:45:10 +0000 (11:45 -0700)
committerRick Bell <richard.s.bell@intel.com>
Thu, 7 Jun 2018 19:44:17 +0000 (19:44 +0000)
commitc621427439b2d650d17a38f344b856a394f389c8
tree34589a301f7f5c0bb29f1831d6fae37fca7236fd
parent666f40d664daf222c750d04436f6404e4d2296b3
update NSAcceptedProviders copy/assign operators

This addresses an iterator missmatch error that is reported by
static analysis tool. This changes the code to use the built in
map assignment operator as well as grab locks before copying the
map to prevent the map being modified while the copy is
occuring.

Bug: https://jira.iotivity.org/browse/IOT-1742
Change-Id: Id7d8eeed91d587db7d2b0f8ca6a8d5b3d98f90fe
Signed-off-by: George Nash <george.nash@intel.com>
service/notification/cpp-wrapper/consumer/src/NSAcceptedProviders.cpp