Changeset 95c675b in mainline for uspace/lib/c/generic/task.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/task.c
rdbf32b1 r95c675b 44 44 #include <async.h> 45 45 #include <errno.h> 46 #include <ns.h> 46 47 #include <malloc.h> 47 48 #include <libc.h> … … 324 325 int task_setup_wait(task_id_t id, task_wait_t *wait) 325 326 { 326 async_exch_t *exch = async_exchange_begin(session_ns); 327 async_sess_t *sess_ns = ns_session_get(); 328 if (sess_ns == NULL) 329 return EIO; 330 331 async_exch_t *exch = async_exchange_begin(sess_ns); 327 332 wait->aid = async_send_2(exch, NS_TASK_WAIT, LOWER32(id), UPPER32(id), 328 333 &wait->result); … … 401 406 int task_retval(int val) 402 407 { 403 async_exch_t *exch = async_exchange_begin(session_ns); 408 async_sess_t *sess_ns = ns_session_get(); 409 if (sess_ns == NULL) 410 return EIO; 411 412 async_exch_t *exch = async_exchange_begin(sess_ns); 404 413 int rc = (int) async_req_1_0(exch, NS_RETVAL, val); 405 414 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.