jobs: Wake up an event loop if needed 17/22417/1
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 13 Sep 2019 09:01:42 +0000 (11:01 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 13 Sep 2019 09:07:57 +0000 (11:07 +0200)
commit7129df470867291f917e6718dad2a964e113aad6
tree9fbfa9f12b5ae3a1e0648960b23b349937215fe8
parent45a4e69d4ef15c70d2b74ea4d0d2e4cd22e3adea
jobs: Wake up an event loop if needed

A queued job must be treated. It was not the case
when the job was queued from a foreign thread.
This change detect that a potential hang exists
and wake up an event loop to avoid it.

Bug-AGL: SPEC-2809

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: Id12d32771ea37df5f5f2e208ec9645a6c4b0d0ab
src/jobs.c