jobs: Separate internal threads from others 49/19649/1
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 16 Jan 2019 10:57:38 +0000 (11:57 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 16 Jan 2019 21:33:23 +0000 (22:33 +0100)
commit48df1b4c1e9d34ab8cafe0f496ddac299a00e00a
tree27059c26bcee25ef3f2adcf930bfc51421f111c7
parente9c6530ee21bb3345741044e8bf87fc6a73252e9
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