Changeset f959a20f in mainline for uspace/lib/c/generic/thread/fibril.c
- Timestamp:
- 2019-02-01T22:32:38Z (5 years ago)
- Children:
- 00b7fc8
- Parents:
- 1a37496
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 21:22:39)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 22:32:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/thread/fibril.c
r1a37496 rf959a20f 601 601 assert(timeout); 602 602 603 link_t *tmp = timeout_list.head.next; 604 while (tmp != &timeout_list.head) { 605 _timeout_t *cur = list_get_instance(tmp, _timeout_t, link); 606 607 if (ts_gteq(&cur->expires, &timeout->expires)) 608 break; 609 610 tmp = tmp->next; 611 } 612 613 list_insert_before(&timeout->link, tmp); 603 list_foreach(timeout_list, link, _timeout_t, cur) { 604 if (ts_gteq(&cur->expires, &timeout->expires)) { 605 list_insert_before(&timeout->link, &cur->link); 606 return; 607 } 608 } 609 610 list_append(&timeout->link, &timeout_list); 614 611 } 615 612
Note:
See TracChangeset
for help on using the changeset viewer.