Changeset 102f641 in mainline for uspace/srv/taskman/task.h
- Timestamp:
- 2019-09-02T19:01:50Z (5 years ago)
- Children:
- 25697163
- Parents:
- 241f1985
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskman/task.h
r241f1985 r102f641 43 43 /** What type of retval from the task we have */ 44 44 typedef enum { 45 RVAL_UNSET, /**< unset */ 46 RVAL_SET, /**< retval set, e.g. by server */ 47 RVAL_SET_EXIT /**< retval set, wait for expected task exit */ 45 /* unset */ 46 RVAL_UNSET, 47 48 /* retval set, e.g. by server */ 49 RVAL_SET, 50 51 /* retval set, wait for expected task exit */ 52 RVAL_SET_EXIT 48 53 } retval_t; 49 54 … … 51 56 typedef struct { 52 57 ht_link_t link; 53 54 task_id_t id; /**< Task id. */55 task_exit_t exit; /**< Task's uspace exit status. */56 bool failed; /**< Task failed (task can exit unexpectedly57 even w/out failure). */58 retval_t retval_type; /**< Task returned a value. */59 int retval; /**< The return value. */60 58 61 link_t listeners; /**< Link to listeners list. */ 62 async_sess_t *sess; /**< Session for notifications to task. */ 59 /* Task id. */ 60 task_id_t id; 61 /* Task's uspace exit status. */ 62 task_exit_t exit; 63 /* Task failed (task can exit unexpectedly even w/out failure). */ 64 bool failed; 65 /* Task returned a value. */ 66 retval_t retval_type; 67 /* The return value. */ 68 int retval; 69 /* Link to listeners list. */ 70 link_t listeners; 71 /* Session for notifications to task. */ 72 async_sess_t *sess; 63 73 } task_t; 64 74 65 typedef bool (* 75 typedef bool (*task_walker_t)(task_t *, void *); 66 76 67 77 extern fibril_rwlock_t task_hash_table_lock;
Note:
See TracChangeset
for help on using the changeset viewer.