Fixed InProcServerWrapper to be thread safe
authorErich Keane <erich.keane@intel.com>
Sat, 10 Jan 2015 00:53:28 +0000 (16:53 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Thu, 22 Jan 2015 15:47:28 +0000 (15:47 +0000)
commit1d97f735b7903a9e2e1954e5414311c7b72bb43f
treea0bd7c521db8d0ab2253a436287dd718a4a1cf82
parent0a204e3c7f3272e3c08f81a6e53bb3b9ffb449c3
Fixed InProcServerWrapper to be thread safe

A few of the variables/collections in the server wrapper were not
properly protected against multi-threading.  This fix adds a mutex
to the class to ensure that all accessed items are protected.
Additionally, they are moved out of the root namespace to prevent
polution.

Change-Id: I2eedb9bf9b1960ff7a018a2ca1e15183e42bd9cd
Signed-off-by: Erich Keane <erich.keane@intel.com>
(cherry picked from commit a31834d16272a5b8d3382fb2959676804157c732)
Reviewed-on: https://gerrit.iotivity.org/gerrit/214
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/src/InProcServerWrapper.cpp