Add an easy function for synchronous calls
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Apr 2017 08:31:09 +0000 (10:31 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Apr 2017 08:31:28 +0000 (10:31 +0200)
commitc186dfbdbd43f5b51a67812ad48e1df1eacf131e
tree595464a4028f6d548260323120efa0c233adb12c
parent9fe2dfd3c4df334607083f989346090e1051a565
Add an easy function for synchronous calls

The added function, 'jobs_call', allows to call
a job with 'group' sequencing and 'timeout'
handling synchronously.

The difference with 'jobs_enter' is that the
function 'jobs_call' assert that the job is
terminated when 'callback' returns.

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