jobs: Separate internal threads from others
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 16 Jan 2019 10:57:38 +0000 (11:57 +0100)
committerLoïc Collignon <loic.collignon@iot.bzh>
Wed, 27 Feb 2019 16:54:25 +0000 (17:54 +0100)
commit886005bf6f5274140ef1ebdc85cd7c34005f40b5
treed6dd499809ff801ba73601565b3b014a1fd81f23
parent522323da4b8f2be83c56fe8f36a072577cd5c61a
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: I2ad7fcfe2c276e34bdc4ec0c2aa3a4207bea1854
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/jobs.c