Changeset 03daabd in mainline for uspace/srv/sysman/job_queue.c


Ignore:
Timestamp:
2019-10-06T19:47:36Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

Renaming dyn_array to array

The term dyn_array is redunant and has therefore been replaced
with the shorter term array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/job_queue.c

    r9559cf8 r03daabd  
    110110        assert(other->merged_into == NULL);
    111111
    112         errno_t rc = dyn_array_concat(&trunk->blocked_jobs, &other->blocked_jobs);
     112        errno_t rc = array_concat(&trunk->blocked_jobs, &other->blocked_jobs);
    113113        if (rc != EOK) {
    114114                return rc;
    115115        }
    116         dyn_array_clear(&other->blocked_jobs);
     116        array_clear(&other->blocked_jobs);
    117117
    118118        // TODO allocate observed object
     
    145145{
    146146        assert(trunk->blocked_jobs.size >= trunk->blocked_jobs_count);
    147         dyn_array_clear_range(&trunk->blocked_jobs,
     147        array_clear_range(&trunk->blocked_jobs,
    148148            trunk->blocked_jobs_count, trunk->blocked_jobs.size);
    149149}
     
    172172
    173173        /* Check consistency with existing jobs. */
    174         dyn_array_foreach(*closure, job_t *, job_it) {
     174        array_foreach(*closure, job_t *, job_it) {
    175175                job_t *job = *job_it;
    176176                job_t *other_job = job->unit->job;
     
    214214        /* Aggregate merged jobs, or rollback any changes in existing jobs */
    215215        bool finish_merge = (rc == EOK) && !has_error;
    216         dyn_array_foreach(*closure, job_t *, job_it) {
     216        array_foreach(*closure, job_t *, job_it) {
    217217                if ((*job_it)->merged_into == NULL) {
    218218                        continue;
     
    236236         *      in their blocked_jobs array.
    237237         */
    238         dyn_array_foreach(*closure, job_t *, job_it) {
     238        array_foreach(*closure, job_t *, job_it) {
    239239                job_t *job = (*job_it);
    240240                if (job->merged_into != NULL) {
     
    255255
    256256        /* We've stolen references from the closure, so erase it */
    257         dyn_array_clear(closure);
     257        array_clear(closure);
    258258
    259259        return EOK;
Note: See TracChangeset for help on using the changeset viewer.