Changeset 45cbcaf4 in mainline
- Timestamp:
- 2012-08-13T17:56:15Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 14c5005
- Parents:
- 3a58347
- Location:
- uspace/lib/c/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r3a58347 r45cbcaf4 637 637 638 638 if (usecs) { 639 get timeofday(&conn->wdata.to_event.expires, NULL);639 getuptime(&conn->wdata.to_event.expires); 640 640 tv_add(&conn->wdata.to_event.expires, usecs); 641 641 } else … … 966 966 { 967 967 struct timeval tv; 968 get timeofday(&tv, NULL);968 getuptime(&tv); 969 969 970 970 futex_down(&async_futex); … … 1023 1023 1024 1024 struct timeval tv; 1025 get timeofday(&tv, NULL);1025 getuptime(&tv); 1026 1026 1027 1027 if (tv_gteq(&tv, &waiter->to_event.expires)) { … … 1330 1330 timeout = 0; 1331 1331 1332 get timeofday(&msg->wdata.to_event.expires, NULL);1332 getuptime(&msg->wdata.to_event.expires); 1333 1333 tv_add(&msg->wdata.to_event.expires, timeout); 1334 1334 … … 1412 1412 msg->wdata.fid = fibril_get_id(); 1413 1413 1414 get timeofday(&msg->wdata.to_event.expires, NULL);1414 getuptime(&msg->wdata.to_event.expires); 1415 1415 tv_add(&msg->wdata.to_event.expires, timeout); 1416 1416 -
uspace/lib/c/generic/fibril_synch.c
r3a58347 r45cbcaf4 379 379 futex_down(&async_futex); 380 380 if (timeout) { 381 get timeofday(&wdata.to_event.expires, NULL);381 getuptime(&wdata.to_event.expires); 382 382 tv_add(&wdata.to_event.expires, timeout); 383 383 async_insert_timeout(&wdata);
Note:
See TracChangeset
for help on using the changeset viewer.