Changeset 780c8ce in mainline for uspace/srv/taskman/main.c
- Timestamp:
- 2019-08-07T05:52:27Z (6 years ago)
- Children:
- 012dd8e
- Parents:
- 2aaccd3
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-22 23:09:22)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:52:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskman/main.c
r2aaccd3 r780c8ce 27 27 */ 28 28 29 /** 30 * Locking order: 31 * - task_hash_table_lock (task.c), 32 * - pending_wait_lock (event.c), 33 * - listeners_lock (event.c). 34 * 35 * @addtogroup taskman 36 * @{ 37 */ 38 29 39 #include <adt/prodcons.h> 30 40 #include <assert.h> … … 113 123 MERGE_LOUP32(IPC_GET_ARG1(*icall), IPC_GET_ARG2(*icall)); 114 124 int flags = IPC_GET_ARG3(*icall); 115 116 wait_for_task(id, flags, iid, icall); 125 task_id_t waiter_id = icall->in_task_id; 126 127 wait_for_task(id, flags, iid, waiter_id); 117 128 } 118 129 … … 120 131 { 121 132 printf("%s:%i from %llu\n", __func__, __LINE__, icall->in_task_id); 122 int rc = task_set_retval(icall); 133 task_id_t sender = icall->in_task_id; 134 int retval = IPC_GET_ARG1(*icall); 135 bool wait_for_exit = IPC_GET_ARG2(*icall); 136 137 int rc = task_set_retval(sender, retval, wait_for_exit); 123 138 async_answer_0(iid, rc); 124 139 } … … 265 280 } 266 281 267 /** Build hard coded configuration */268 269 282 270 283 int main(int argc, char *argv[]) … … 313 326 return 0; 314 327 } 328 329 /** 330 * @} 331 */
Note:
See TracChangeset
for help on using the changeset viewer.