Changes in uspace/lib/c/generic/async.c [7f9d97f3:8820544] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r7f9d97f3 r8820544 167 167 168 168 /** Async framework global futex */ 169 futex_t async_futex = FUTEX_INITIALIZER;169 atomic_t async_futex = FUTEX_INITIALIZER; 170 170 171 171 /** Number of threads waiting for IPC in the kernel. */ … … 820 820 if (usecs) { 821 821 getuptime(&conn->wdata.to_event.expires); 822 tv_add _diff(&conn->wdata.to_event.expires, usecs);822 tv_add(&conn->wdata.to_event.expires, usecs); 823 823 } else 824 824 conn->wdata.to_event.inlist = false; … … 1214 1214 1215 1215 } else { 1216 timeout = tv_sub_diff(&waiter->to_event.expires, 1217 &tv); 1216 timeout = tv_sub(&waiter->to_event.expires, &tv); 1218 1217 futex_up(&async_futex); 1219 1218 } … … 1506 1505 1507 1506 getuptime(&msg->wdata.to_event.expires); 1508 tv_add _diff(&msg->wdata.to_event.expires, timeout);1507 tv_add(&msg->wdata.to_event.expires, timeout); 1509 1508 1510 1509 /* … … 1588 1587 1589 1588 getuptime(&msg->wdata.to_event.expires); 1590 tv_add _diff(&msg->wdata.to_event.expires, timeout);1589 tv_add(&msg->wdata.to_event.expires, timeout); 1591 1590 1592 1591 futex_down(&async_futex);
Note:
See TracChangeset
for help on using the changeset viewer.