/uspace/trunk/libc/generic/async.c/async.c |
---|
286,6 → 286,9 |
assert(PS_connection); |
if (usecs < 0) /* TODO: let it get through the ipc_call once */ |
return 0; |
futex_down(&async_futex); |
if (usecs) { |
655,6 → 658,10 |
amsg_t *msg = (amsg_t *) amsgid; |
connection_t *conn; |
/* TODO: Let it go through the event read at least once */ |
if (timeout < 0) |
return ETIMEOUT; |
futex_down(&async_futex); |
if (msg->done) { |
futex_up(&async_futex); |