Added check to disallow more than one instance of the RI Layer's C SDK.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Thu, 16 Apr 2015 19:02:42 +0000 (15:02 -0400)
committerErich Keane <erich.keane@intel.com>
Mon, 20 Apr 2015 05:59:01 +0000 (05:59 +0000)
commit793c3d85c815fde59230bfb4f675de2559de24c5
treeeffb18cac1a5eb9022b406d8193e371b0d9a523b
parent4b7091f8edbc61c07dc365c08cda0e9c864b6716
Added check to disallow more than one instance of the RI Layer's C SDK.

Without proper re-entrancy, the RI Layer's C SDK should not support or try
to support more than one instance of the stack. If it does, unknown
behavior may occur. This commit eliminates this possible cause for error.

Change-Id: Ib85d29cdd2b8fa55a7415f57e8ec7e88bc164927
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/749
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c