Fix business logic in slp-pkgmgr-server. 33/30833/2 accepted/tizen/common/20141125.180004 accepted/tizen/ivi/20141203.010012 submit/tizen_common/20141125.175019 submit/tizen_ivi/20141201.000000 submit/tizen_ivi/20141201.014922 submit/tizen_ivi/20141202.062010
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Tue, 25 Nov 2014 17:19:00 +0000 (18:19 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Tue, 25 Nov 2014 17:33:34 +0000 (18:33 +0100)
commitc5abded9a1d299e11251de72d1267f5b18d44020
tree229f3a1590ec1711391df32756079cbf2750ca86
parenta0bbbbe84d364821fc29704325a5d860330f0788
Fix business logic in slp-pkgmgr-server.

The current logic of pkgmgr-server is not robust to a burst of installation request.
This leads to have a deadlock into pkgmgr-server.

And it doens't answer to reuqest anymore

Force to wait backend end before returning for each job that is dependent of a backend

Make pm_queue thread safe. (we can have multiple request that leads to have concurencial meassge push )

BUG-Tizen=TC-2127

Change-Id: Ib3b3b4c4c9043b395869f0ee6c16da6db0da932d
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
server/src/pkgmgr-server.c
server/src/pm-queue.c