Changeset 03daabd in mainline for uspace/srv/sysman/job_closure.c
- Timestamp:
- 2019-10-06T19:47:36Z (5 years ago)
- Children:
- 5be6361
- Parents:
- 9559cf8
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-09-17 07:50:03)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/job_closure.c
r9559cf8 r03daabd 66 66 blocking_job->blocked_jobs_count); 67 67 68 errno_t rc = dyn_array_append(&blocking_job->blocked_jobs, job_t *,68 errno_t rc = array_append(&blocking_job->blocked_jobs, job_t *, 69 69 blocked_job); 70 70 if (rc != EOK) { … … 97 97 goto finish; 98 98 } 99 job_t *first_job = dyn_array_last(closure, job_t *);99 job_t *first_job = array_last(closure, job_t *); 100 100 101 101 job_add_ref(first_job); … … 119 119 120 120 /* Pass job reference to closure and add one for unit */ 121 rc = dyn_array_append(closure, job_t *, created_job);121 rc = array_append(closure, job_t *, created_job); 122 122 if (rc != EOK) { 123 123 goto finish; … … 165 165 166 166 /* Pass job reference to closure and add one for unit */ 167 rc = dyn_array_append(closure, job_t *, created_job);167 rc = array_append(closure, job_t *, created_job); 168 168 if (rc != EOK) { 169 169 goto finish; … … 308 308 } 309 309 310 errno_t rc = dyn_array_append(job_closure, job_t *, main_job);310 errno_t rc = array_append(job_closure, job_t *, main_job); 311 311 if (rc != EOK) { 312 312 return rc; … … 343 343 344 344 if (rc == EOK) { 345 dyn_array_foreach(*job_closure, job_t *, job_it) {345 array_foreach(*job_closure, job_t *, job_it) { 346 346 sysman_log(LVL_DEBUG2, "%s\t%s, refs: %u", __func__, 347 347 unit_name((*job_it)->unit), atomic_load(&(*job_it)->refcnt)); … … 350 350 351 351 /* Clean after ourselves (BFS tag jobs) */ 352 dyn_array_foreach(*job_closure, job_t *, job_it) {352 array_foreach(*job_closure, job_t *, job_it) { 353 353 job_t *j = (*job_it)->unit->bfs_data; 354 354 assert(*job_it == j);
Note:
See TracChangeset
for help on using the changeset viewer.