Changeset 984a9ba in mainline for uspace/srv/ns/task.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
r76f566d r984a9ba 145 145 typedef struct { 146 146 link_t link; 147 task_id_t id; ///< Task ID148 cap_call_handle_t chandle; ///< Call handle waiting for the connection147 task_id_t id; /**< Task ID */ 148 ipc_call_t call; /**< Call waiting for the connection */ 149 149 } pending_wait_t; 150 150 … … 184 184 texit = ht->have_rval ? TASK_EXIT_NORMAL : 185 185 TASK_EXIT_UNEXPECTED; 186 async_answer_2( pr->chandle, EOK, texit, ht->retval);186 async_answer_2(&pr->call, EOK, texit, ht->retval); 187 187 188 188 list_remove(&pr->link); … … 192 192 } 193 193 194 void wait_for_task(task_id_t id, ipc_call_t *call , cap_call_handle_t chandle)194 void wait_for_task(task_id_t id, ipc_call_t *call) 195 195 { 196 196 ht_link_t *link = hash_table_find(&task_hash_table, &id); … … 200 200 if (ht == NULL) { 201 201 /* No such task exists. */ 202 async_answer_0(c handle, ENOENT);202 async_answer_0(call, ENOENT); 203 203 return; 204 204 } … … 207 207 task_exit_t texit = ht->have_rval ? TASK_EXIT_NORMAL : 208 208 TASK_EXIT_UNEXPECTED; 209 async_answer_2(c handle, EOK, texit, ht->retval);209 async_answer_2(call, EOK, texit, ht->retval); 210 210 return; 211 211 } … … 215 215 (pending_wait_t *) malloc(sizeof(pending_wait_t)); 216 216 if (!pr) { 217 async_answer_0(c handle, ENOMEM);217 async_answer_0(call, ENOMEM); 218 218 return; 219 219 } … … 221 221 link_initialize(&pr->link); 222 222 pr->id = id; 223 pr->c handle = chandle;223 pr->call = *call; 224 224 list_append(&pr->link, &pending_wait); 225 225 }
Note:
See TracChangeset
for help on using the changeset viewer.