Changeset 780c8ce in mainline for uspace/srv/taskman/main.c


Ignore:
Timestamp:
2019-08-07T05:52:27Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

taskman: Light streamlining (removing TODOs)

  • Low work attitude today :-(
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/main.c

    r2aaccd3 r780c8ce  
    2727 */
    2828
     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
    2939#include <adt/prodcons.h>
    3040#include <assert.h>
     
    113123            MERGE_LOUP32(IPC_GET_ARG1(*icall), IPC_GET_ARG2(*icall));
    114124        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);
    117128}
    118129
     
    120131{
    121132        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);
    123138        async_answer_0(iid, rc);
    124139}
     
    265280}
    266281
    267 /** Build hard coded configuration */
    268 
    269282
    270283int main(int argc, char *argv[])
     
    313326        return 0;
    314327}
     328
     329/**
     330 * @}
     331 */
Note: See TracChangeset for help on using the changeset viewer.