Changeset 5044114 in mainline


Ignore:
Timestamp:
2019-08-07T04:46:21Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
55fe220
Parents:
e0e7eba
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-12 22:21:12)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 04:46:21)
Message:

taskman: Allow relaxed task_wait setups
Conflicts:

uspace/lib/c/generic/task.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    re0e7eba r5044114  
    395395errno_t task_wait(task_wait_t *wait, task_exit_t *texit, int *retval)
    396396{
    397         assert(texit);
    398         assert(retval);
    399 
    400397        errno_t rc;
    401398        async_wait_for(wait->aid, &rc);
    402 
     399       
    403400        if (rc == EOK) {
    404                 *texit = ipc_get_arg1(&wait->result);
    405                 *retval = ipc_get_arg2(&wait->result);
     401                if (wait->flags & TASK_WAIT_EXIT && texit)
     402                        *texit = ipc_get_arg1(wait->result);
     403                if (wait->flags & TASK_WAIT_RETVAL && retval)
     404                        *retval = ipc_get_arg2(wait->result);
    406405        }
    407406
Note: See TracChangeset for help on using the changeset viewer.