Refactor job to allow synchronous calls
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 28 Mar 2017 15:46:32 +0000 (17:46 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 28 Mar 2017 15:46:32 +0000 (17:46 +0200)
commit162436f4ffbbf63d867735f7de5b78dcd684f890
tree3c7a1f4b37829da57b1b9be1ecf027d753101a89
parent48827b7b9862ab5961f938f38a8667e15421a50c
Refactor job to allow synchronous calls

The family of methods "jobs_invoke" make synchronous
job activation. It waits for the completion of the
job while still dispatching it internally and
providing the calling thread for processing any job
queued.

Change-Id: Id36a30789cc51245a7bbfca42f0122cf4ea623b2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/jobs.c
src/jobs.h
src/tests/test-thread.c
src/tests/test-thread.sh