Fix potential infinite wait in IPCAFactoryReset() and IPCAReboot().
authorSoemin Tjong <stjong@microsoft.com>
Thu, 1 Jun 2017 01:59:43 +0000 (18:59 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 7 Jun 2017 20:35:59 +0000 (20:35 +0000)
commita7840d49647faf8c61db8941fdcfc7a366522ca8
treefe985251bd942eacf05c7c822d5cf26e461cd579
parenta4262755e4ad58ab669fc1f25ad1237582e14e94
Fix potential infinite wait in IPCAFactoryReset() and IPCAReboot().

Without the predicate parameter, the wait_for() won't be unblocked from
earlier notify_all().

Also, relax the timing waiting for notifications in the unit tests.

Change-Id: I04d34f8221dc92239b27877b365dcb0d211c3458
Signed-off-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20519
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/IPCA/src/ipca.cpp
resource/IPCA/unittests/ipcaunittests.cpp