Changeset 25697163 in mainline for uspace/srv/sysman/job_queue.c
- Timestamp:
- 2019-10-06T19:47:15Z (5 years ago)
- Children:
- 9559cf8
- Parents:
- 102f641
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-09-06 17:58:36)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/job_queue.c
r102f641 r25697163 103 103 * @return error code on fail 104 104 */ 105 static int job_pre_merge(job_t *trunk, job_t *other)105 static errno_t job_pre_merge(job_t *trunk, job_t *other) 106 106 { 107 107 assert(trunk->unit == other->unit); … … 110 110 assert(other->merged_into == NULL); 111 111 112 int rc = dyn_array_concat(&trunk->blocked_jobs, &other->blocked_jobs);112 errno_t rc = dyn_array_concat(&trunk->blocked_jobs, &other->blocked_jobs); 113 113 if (rc != EOK) { 114 114 return rc; … … 134 134 */ 135 135 size_t observers_refs = sysman_observers_count(other); 136 int rc = sysman_move_observers(other, trunk);136 errno_t rc = sysman_move_observers(other, trunk); 137 137 assert(rc == EOK); 138 138 … … 166 166 * @return EBUSY when any job in closure is conflicting 167 167 */ 168 int job_queue_add_closure(job_closure_t *closure)168 errno_t job_queue_add_closure(job_closure_t *closure) 169 169 { 170 170 bool has_error = false; 171 int rc = EOK;171 errno_t rc = EOK; 172 172 173 173 /* Check consistency with existing jobs. */
Note:
See TracChangeset
for help on using the changeset viewer.