Changeset 2f44fafd in mainline for uspace/lib/c/generic/task.c
- Timestamp:
- 2019-08-07T04:33:20Z (6 years ago)
- Children:
- e0e7eba
- Parents:
- 62273d1
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-12 21:58:23)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 04:33:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/task.c
r62273d1 r2f44fafd 131 131 static errno_t task_setup_wait(task_id_t id, task_wait_t *wait) 132 132 { 133 assert(wait->flags); 133 134 async_exch_t *exch = taskman_exchange_begin(); 134 135 if (exch == NULL) … … 435 436 } 436 437 437 errno_t task_retval (int val)438 errno_t task_retval_internal(int val, bool wait_for_exit) 438 439 { 439 440 async_exch_t *exch = taskman_exchange_begin(); … … 441 442 return EIO; 442 443 443 int rc = (int) async_req_1_0(exch, TASKMAN_RETVAL, val);444 errno_t rc = (int) async_req_2_0(exch, TASKMAN_RETVAL, val, wait_for_exit); 444 445 taskman_exchange_end(exch); 445 446 … … 447 448 } 448 449 450 errno_t task_retval(int val) 451 { 452 return task_retval_internal(val, false); 453 } 454 449 455 450 456 void __task_init(async_sess_t *sess)
Note:
See TracChangeset
for help on using the changeset viewer.