Changeset 3f7e1f24 in mainline for uspace/srv/sysman/units/unit_cfg.c


Ignore:
Timestamp:
2019-08-03T08:28:26Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
095d03c
Parents:
d7c5fc0
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-04-22 17:54:08)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-03 08:28:26)
Message:

sysman: Refactored job manipulation (event loop + one main fibril)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/units/unit_cfg.c

    rd7c5fc0 r3f7e1f24  
    176176                }
    177177
    178                 assert(unit->state = STATE_EMBRYO);
     178                assert(unit->state == STATE_EMBRYO);
    179179                configuration_add_unit(unit);
    180180        }
     
    232232        assert(u_cfg);
    233233
    234         /*
    235          * Skip starting state and hold state lock during whole configuration
    236          * load.
    237          */
    238         fibril_mutex_lock(&unit->state_mtx);
    239234        int rc = cfg_load_configuration(u_cfg->path);
    240235       
     
    244239                unit->state = STATE_FAILED;
    245240        }
    246         fibril_condvar_broadcast(&unit->state_cv);
    247         fibril_mutex_unlock(&unit->state_mtx);
    248241
    249242        return rc;
Note: See TracChangeset for help on using the changeset viewer.