Cancel threads before exiting in
authorDoug Hudson <douglas.hudson@intel.com>
Thu, 2 Oct 2014 21:10:44 +0000 (17:10 -0400)
committerDoug Hudson <douglas.hudson@intel.com>
Thu, 2 Oct 2014 21:10:44 +0000 (17:10 -0400)
commit838a6059595e19ee32462e1c0adb0895a76ac8fa
treea0b7c4024b9cf4777358f24b802c34797e944626
parent25296165bb1da0d73aa9ac53871d777f8badf627
Cancel threads before exiting in
csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp and ocservercoll.cpp.
If threads are not canceled before exiting program, valgrind shows lost bytes.
While not really a stack problem, it could be distracting while trying to
use valgrind to find future memory leaks in the stack.

Change-Id: I653916211d6115381fae33cf95338c83b395d6fe
csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp