Changeset c0c388d2 in mainline for uspace/srv/sysman/job.h
- Timestamp:
- 2019-08-03T07:36:48Z (6 years ago)
- Children:
- 4fe7fcb
- Parents:
- 694253c
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-03-16 19:31:17)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 07:36:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/job.h
r694253c rc0c388d2 3 3 4 4 #include <adt/list.h> 5 #include <atomic.h> 5 6 6 7 #include "unit.h" … … 25 26 26 27 struct job { 28 /** Link to queue job is in */ 27 29 link_t link; 28 30 31 /** List of jobs (job_link_t ) that are blocking the job. */ 29 32 list_t blocking_jobs; 33 34 /** Reference counter for the job structure. */ 35 atomic_t refcnt; 30 36 31 37 job_type_t type; … … 36 42 fibril_condvar_t state_cv; 37 43 44 /** Return value of the job, defined only when state == JOB_FINISHED */ 38 45 int retval; 39 46 }; … … 44 51 extern int job_wait(job_t *); 45 52 53 extern void job_add_ref(job_t *); 54 extern void job_del_ref(job_t **); 55 46 56 extern job_t *job_create(job_type_t type); 47 extern void job_destroy(job_t **);48 57 49 58 #endif
Note:
See TracChangeset
for help on using the changeset viewer.