Prevent from call method on partially destroyed object 56/33856/2
authorMateusz Malicki <m.malicki2@samsung.com>
Thu, 15 Jan 2015 15:20:12 +0000 (16:20 +0100)
committerJan Olszak <j.olszak@samsung.com>
Thu, 15 Jan 2015 16:52:39 +0000 (08:52 -0800)
commitdfde8584ca4722a4906926ba5b6444b8bb521c98
tree7eacbffa8fd30155a4bdc4ec50f074b2639af2ad
parente1466434bea116c9ae0dbd6af5354f2dc492c444
Prevent from call method on partially destroyed object

[Bug]           startAsync can cause call method on partially destroyed object
[Cause]         async call are processed while ZoneManager is being destroyed
[Solution]      Ensure that all async calls was ended
[Verification]  Set EVENT_TIMEOUT=5 (ut-zones-manager.cpp), build, install,
                run ZonesManagerSuite/StartShutdownZoneTest with 1000
                times less speed.

Change-Id: I00bc8c0926be8a9a62ec23b81f62a2827db4799b
server/zone.cpp
server/zones-manager.cpp