aboutsummaryrefslogtreecommitdiffstats
path: root/src/jobs.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-13 09:43:18 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-13 09:43:18 +0200
commitb48b736097a222fdf8c6f1a33c922ee7d7bcd633 (patch)
treed11b0f4dd0012086fff1a3bcae286ab20656f846 /src/jobs.h
parente2a585bba8402e9a1f4db2340a515f27d4d80cd7 (diff)
Simplification and optimisation of jobs
It comes from the use of this module that it can be simplified to only get 1 argument. It reduces either the complexity of the code and the time spent in job management. It optimise how normal jobs are called (not intermediate function). Also factorisation and simplification of synchronous enter/call. Change-Id: Id60dd2363fee2b007b4557430659faf733d2179d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.h')
-rw-r--r--src/jobs.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/jobs.h b/src/jobs.h
index a98b27ad..49f45dd5 100644
--- a/src/jobs.h
+++ b/src/jobs.h
@@ -20,32 +20,12 @@
struct sd_event;
struct jobloop;
-extern int jobs_queue0(
- void *group,
- int timeout,
- void (*callback)(int signum));
-
extern int jobs_queue(
void *group,
int timeout,
void (*callback)(int signum, void* arg),
void *arg);
-extern int jobs_queue2(
- void *group,
- int timeout,
- void (*callback)(int signum, void* arg1, void *arg2),
- void *arg1,
- void *arg2);
-
-extern int jobs_queue3(
- void *group,
- int timeout,
- void (*callback)(int signum, void* arg1, void *arg2, void *arg3),
- void *arg1,
- void *arg2,
- void *arg3);
-
extern int jobs_enter(
void *group,
int timeout,