Changed zigbee sample to use signal-atomic
authorJoseph Morrow <joseph.l.morrow@intel.com>
Sat, 19 Sep 2015 03:27:03 +0000 (20:27 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Sun, 20 Sep 2015 05:42:20 +0000 (05:42 +0000)
commitd0b01e912d1ca080531ca87b3d80c69ebfb2d4b8
tree4fabed1afef4ba1168d3d7dec340825a2474c0cd
parent3c30b5222b0142cf897e8600c74314b7993a4bc3
Changed zigbee sample to use signal-atomic

The signal atomic type is more reliable than bool, since it is
guaranteed to enforce thread safety. Also fixed the logic in the 'while'
loop so that this will function properly when the calls work.

Change-Id: I1ef4713f9e894592b1b25c874327bce810c83352
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2769
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
plugins/samples/linux/IotivityandZigbeeServer.c