Make all the API calls queue together so we guarantee order 96/40996/4
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 10 Jun 2015 16:27:02 +0000 (18:27 +0200)
committerJan Olszak <j.olszak@samsung.com>
Mon, 15 Jun 2015 11:36:48 +0000 (04:36 -0700)
commitf3643dc01949f5b76180d485bf18a0e54c6c3e14
treeff47758d803e99539b5151f5d2b8ff4030b663ec
parent3cce24ba314a579c5fedd44e75c00b737cedd304
Make all the API calls queue together so we guarantee order

[Bug]           Some API calls were async hence the sync ones could have
                been run before them. There was no guarantee for the
                calls to be ordered the way they've been requested.
[Cause]         N/A
[Solution]      Add sync calls to the same queue as the async ones so we
                can guarantee their order of execution.
[Verification]  Built, installed, run tests.

Change-Id: Iab59552d46689fb86576539012004107f4e675b3
common/utils/worker.cpp
common/utils/worker.hpp
server/zones-manager.cpp