Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset adb49f58 in mainline for uspace/lib/libc/generic/task.c


Ignore:
Timestamp:
2009-07-06T20:16:15Z (12 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
95bc57c
Parents:
0315679
Message:

Allow to determine whether a task returned value before terminatign.

File:
1 edited

Legend:

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

    r0315679 radb49f58  
    149149}
    150150
    151 int task_wait(task_id_t id, int *retval)
     151int task_wait(task_id_t id, task_exit_t *texit, int *retval)
    152152{
    153         ipcarg_t rv;
     153        ipcarg_t te, rv;
    154154        int rc;
    155155
    156         rc = (int) async_req_2_1(PHONE_NS, NS_TASK_WAIT, LOWER32(id),
    157             UPPER32(id), &rv);
     156        rc = (int) async_req_2_2(PHONE_NS, NS_TASK_WAIT, LOWER32(id),
     157            UPPER32(id), &te, &rv);
     158        *texit = te;
    158159        *retval = rv;
    159160
Note: See TracChangeset for help on using the changeset viewer.