Changes in uspace/lib/c/generic/fibril_synch.c [47c9a8c:7cf7ded] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril_synch.c
r47c9a8c r7cf7ded 112 112 awaiter_t wdata; 113 113 114 awaiter_initialize(&wdata);115 114 wdata.fid = fibril_get_id(); 115 wdata.active = false; 116 116 wdata.wu_event.inlist = true; 117 link_initialize(&wdata.wu_event.link); 117 118 list_append(&wdata.wu_event.link, &fm->waiters); 118 119 check_for_deadlock(&fm->oi); … … 204 205 awaiter_t wdata; 205 206 206 awaiter_initialize(&wdata);207 207 wdata.fid = (fid_t) f; 208 wdata.active = false; 208 209 wdata.wu_event.inlist = true; 210 link_initialize(&wdata.wu_event.link); 209 211 f->flags &= ~FIBRIL_WRITER; 210 212 list_append(&wdata.wu_event.link, &frw->waiters); … … 231 233 awaiter_t wdata; 232 234 233 awaiter_initialize(&wdata);234 235 wdata.fid = (fid_t) f; 236 wdata.active = false; 235 237 wdata.wu_event.inlist = true; 238 link_initialize(&wdata.wu_event.link); 236 239 f->flags |= FIBRIL_WRITER; 237 240 list_append(&wdata.wu_event.link, &frw->waiters); … … 372 375 return ETIMEOUT; 373 376 374 awaiter_initialize(&wdata);375 377 wdata.fid = fibril_get_id(); 378 wdata.active = false; 379 376 380 wdata.to_event.inlist = timeout > 0; 381 wdata.to_event.occurred = false; 382 link_initialize(&wdata.to_event.link); 383 377 384 wdata.wu_event.inlist = true; 385 link_initialize(&wdata.wu_event.link); 378 386 379 387 futex_down(&async_futex);
Note:
See TracChangeset
for help on using the changeset viewer.