aboutsummaryrefslogtreecommitdiffstats
path: root/src/jobs.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-04-18 17:07:48 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-06-13 17:14:42 +0200
commit65e9c2b1fe1ea900383307ba7413ca379acbce4d (patch)
treea7cfbf25d641451a28c2df5ebaff63ff2fcbb619 /src/jobs.c
parent1fe1d2bb7dbd9b35ee2d533a2283d361ebac0cb5 (diff)
jobs: Fix minor errors
Change-Id: I78aeb16fb1cf5b029fb24704d16c42152f9cc909 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.c')
-rw-r--r--src/jobs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jobs.c b/src/jobs.c
index 9c81700a..d71e5d0a 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -92,8 +92,8 @@ struct thread
struct thread *upper; /**< upper same thread */
struct job *job; /**< currently processed job */
pthread_t tid; /**< the thread id */
- unsigned stop: 1; /**< stop requested */
- unsigned waits: 1; /**< is waiting? */
+ volatile unsigned stop: 1; /**< stop requested */
+ volatile unsigned waits: 1; /**< is waiting? */
};
/**
@@ -378,7 +378,7 @@ static void thread_run(volatile struct thread *me)
}
/* get a job */
- job = job_get(first_job);
+ job = job_get();
if (job) {
/* prepare running the job */
remains++; /* increases count of job that can wait */
@@ -604,7 +604,7 @@ static int do_sync(
* of interrupted flow, the context 'closure' as given and
* a 'jobloop' reference that must be used when the job is
* terminated to unlock the current execution flow.
- * @param arg the argument to the callback
+ * @param closure the argument to the callback
* @return 0 on success or -1 in case of error
*/
int jobs_enter(