system & jobs: Reverse link and acquiring events 44/20844/1
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 14 Feb 2019 08:37:26 +0000 (09:37 +0100)
committerJose Bollo <jose.bollo@iot.bzh>
Wed, 27 Mar 2019 09:48:40 +0000 (10:48 +0100)
commitc330ecf92fef81fdb0471715326b8bc6b4d52bc6
treeb403a04b9035d326ff97f6b58f1a51e58014fe59
parentd7e4faba5d1744160d538edd74bc4bdd8a173b1a
system & jobs: Reverse link and acquiring events

- The new version of 'systemd_get_event_loop' dont depends
anymore on jobs but returns a unique systemd event loop
for any threads.

- The event loop of jobs now use system.h function instead
of the opposite.

- The function 'jobs_get_sd_event' is removed

- The function 'jobs_acquire_event_manager' is introduced.
It is designed to that the current thread can manipulate
the single event manager

Change-Id: I31fe48dfe0f2cfa4d468e49338d36fea6e7e8081
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-api-dbus.c
src/afb-export.c
src/afb-fdev.c
src/jobs.c
src/jobs.h
src/systemd.c
src/watchdog.c