jobs: Separate internal threads from others 55/19855/1
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 16 Jan 2019 10:57:38 +0000 (11:57 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 5 Feb 2019 08:58:02 +0000 (09:58 +0100)
commit97d9062e847ea3287a9a87802b5502e81dda4e38
tree7a4ae6bd809222f03a26f4a431c0c76ecbecd1ef
parentfec8057d9779ea8e45682aa2a97b88d96eccf03c
jobs: Separate internal threads from others

Foreign threads, that are not started by jobs,
are allowed to use synchronous jobs_call/job_leave
(directly or indirectly).

This commit ensure that those foreign thread will
neither acquire the eventloop nor execute jobs.

Includes a tiny cleanup of remain usage.

Bug-AGL: SPEC-2089

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