Changes in uspace/lib/c/generic/fibril.c [c0699467:8cf6709] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril.c
rc0699467 r8cf6709 41 41 #include <unistd.h> 42 42 #include <stdio.h> 43 #include < libarch/barrier.h>43 #include <arch/barrier.h> 44 44 #include <libarch/faddr.h> 45 45 #include <futex.h> … … 222 222 fibril_t *dstf; 223 223 if ((stype == FIBRIL_TO_MANAGER) || (stype == FIBRIL_FROM_DEAD)) { 224 dstf = list_get_instance(list_first(&manager_list), fibril_t, 225 link); 224 dstf = list_get_instance(manager_list.next, fibril_t, link); 226 225 if (serialization_count && stype == FIBRIL_TO_MANAGER) { 227 226 serialized_threads++; … … 234 233 } else { 235 234 if (!list_empty(&serialized_list)) { 236 dstf = list_get_instance( list_first(&serialized_list),237 fibril_t,link);235 dstf = list_get_instance(serialized_list.next, fibril_t, 236 link); 238 237 serialized_threads--; 239 238 } else { 240 dstf = list_get_instance( list_first(&ready_list),241 fibril_t,link);239 dstf = list_get_instance(ready_list.next, fibril_t, 240 link); 242 241 } 243 242 } … … 327 326 328 327 if (!list_empty(&manager_list)) 329 list_remove( list_first(&manager_list));328 list_remove(manager_list.next); 330 329 331 330 futex_up(&fibril_futex);
Note:
See TracChangeset
for help on using the changeset viewer.