Changeset d4ec49e in mainline for uspace/lib/c/include/task.h


Ignore:
Timestamp:
2019-08-07T05:25:59Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
3ea98e8
Parents:
55fe220
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-14 23:13:41)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:25:59)
Message:

taskman: Implement waiting both for retval and exit
Conflicts:

uspace/lib/c/generic/task.c
uspace/lib/c/include/task.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/task.h

    r55fe220 rd4ec49e  
    4444#define TASK_WAIT_EXIT   0x1
    4545#define TASK_WAIT_RETVAL 0x2
     46#define TASK_WAIT_BOTH   0x4
    4647
    4748typedef struct {
     
    4950        ipc_call_t result;
    5051        aid_t aid;
     52        task_id_t tid;
    5153} task_wait_t;
    5254
     
    5456{
    5557        wait->flags = flags;
     58}
     59
     60static inline int task_wait_get(task_wait_t *wait)
     61{
     62        return wait->flags;
    5663}
    5764
     
    8491
    8592extern errno_t task_retval(int);
    86 //TODO
    87 //extern int task_exit(int);
    8893
    8994#endif
Note: See TracChangeset for help on using the changeset viewer.