summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1fe1d2b)
Change-Id: I78aeb16fb1cf5b029fb24704d16c42152f9cc909
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
struct thread *upper; /**< upper same thread */
struct job *job; /**< currently processed job */
pthread_t tid; /**< the thread id */
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? */
- job = job_get(first_job);
if (job) {
/* prepare running the job */
remains++; /* increases count of job that can wait */
if (job) {
/* prepare running the job */
remains++; /* increases count of job that can wait */
* 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.
* 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(
* @return 0 on success or -1 in case of error
*/
int jobs_enter(