From: José Bollo Date: Fri, 15 Feb 2019 19:49:54 +0000 (+0100) Subject: jobs: Refactor exiting jobs X-Git-Tag: 7.99.1~22 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=901a38c28bf3fe7cc3e58e3fad36190fbae585be;hp=901a38c28bf3fe7cc3e58e3fad36190fbae585be;p=src%2Fapp-framework-binder.git jobs: Refactor exiting jobs The new termination function can allow the restart because it doesn't abort the waiting jobs. So after calling 'jobs_exit', all threads stop. The function 'job_start' returns. The threads that are in blocking state, i.e. in a call to 'jobs_enter' or 'jobs_call' are stopped. An error status -1 with errno=EINTR is returned in that case. But before returning, that function calls the exit handler if any. Change-Id: I85a4b1976b09b18804eb681af940531ae5ace6c3 Signed-off-by: José Bollo ---