Changeset bd41ac52 in mainline for uspace/lib/c/generic/async/server.c
- Timestamp:
- 2018-08-25T22:21:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cca80a2
- Parents:
- e2625b1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/server.c
re2625b1a rbd41ac52 110 110 #include <assert.h> 111 111 #include <errno.h> 112 #include < sys/time.h>112 #include <time.h> 113 113 #include <stdbool.h> 114 114 #include <stdlib.h> … … 916 916 * 917 917 */ 918 bool async_get_call_timeout(ipc_call_t *call, suseconds_t usecs)918 bool async_get_call_timeout(ipc_call_t *call, usec_t usecs) 919 919 { 920 920 assert(call); 921 921 assert(fibril_connection); 922 922 923 struct time val tv;924 struct time val*expires = NULL;923 struct timespec ts; 924 struct timespec *expires = NULL; 925 925 if (usecs) { 926 getuptime(&t v);927 t v_add_diff(&tv, usecs);928 expires = &t v;926 getuptime(&ts); 927 ts_add_diff(&ts, USEC2NSEC(usecs)); 928 expires = &ts; 929 929 } 930 930
Note:
See TracChangeset
for help on using the changeset viewer.