Changeset 015b147 in mainline for uspace/srv/sysman/sm_task.c


Ignore:
Timestamp:
2019-08-17T13:52:32Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
be07995
Parents:
31ef7c1
git-author:
Michal Koutný <xm.koutny+hos@…> (2016-01-10 17:17:19)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:52:32)
Message:

sysman: Refactored unit repo iteration and locking

File:
1 edited

Legend:

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

    r31ef7c1 r015b147  
    7575         * instead of specialized structures.
    7676         */
    77         list_foreach(units, units, unit_t, u) {
    78                 if (u->type != UNIT_SERVICE) {
    79                         continue;
    80                 }
     77        repo_foreach_t(UNIT_SERVICE, u) {
    8178                if (CAST_SVC(u)->main_task_id == tid) {
    8279                        return CAST_SVC(u);
Note: See TracChangeset for help on using the changeset viewer.