Changeset 5be6361 in mainline


Ignore:
Timestamp:
2019-10-06T19:47:36Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
7ffdcbd
Parents:
03daabd
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-09-17 08:01:31)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:36)
Message:

Make use of helper function in lib/taskman

The code provided helper function for creating a
exchange with the taskman session but they were not
used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/taskman.c

    r03daabd r5be6361  
    6060
    6161        async_exch_t *exch = async_exchange_begin(session_taskman);
     62        assert(exch);
     63
    6264        return exch;
    6365}
     
    9799async_sess_t *taskman_session_ns(void)
    98100{
    99         assert(session_taskman);
    100 
    101         async_exch_t *exch = async_exchange_begin(session_taskman);
    102         assert(exch);
     101        async_exch_t *exch = taskman_exchange_begin();
    103102
    104103        async_sess_t *sess = async_connect_me_to(exch, INTERFACE_NS,
    105104            TASKMAN_CONNECT_TO_NS, 0);
    106         async_exchange_end(exch);
     105        taskman_exchange_end(exch);
    107106
    108107        return sess;
     
    112111async_sess_t *taskman_session_loader(void)
    113112{
    114         assert(session_taskman);
    115 
    116         async_exch_t *exch = async_exchange_begin(session_taskman);
     113        async_exch_t *exch = taskman_exchange_begin();
    117114        async_sess_t *sess = async_connect_me_to(exch, INTERFACE_LOADER,
    118115            TASKMAN_CONNECT_TO_LOADER, 0);
    119         async_exchange_end(exch);
     116        taskman_exchange_end(exch);
    120117
    121118        return sess;
     
    137134errno_t taskman_intro_loader(void)
    138135{
    139         assert(session_taskman);
    140 
    141         async_exch_t *exch = async_exchange_begin(session_taskman);
     136        async_exch_t *exch = taskman_exchange_begin();
    142137        errno_t rc = async_connect_to_me(exch, INTERFACE_LOADER, TASKMAN_LOADER_CALLBACK, 0);
    143         async_exchange_end(exch);
     138        taskman_exchange_end(exch);
    144139
    145140        return rc;
     
    152147errno_t taskman_intro_ns(void)
    153148{
    154         assert(session_taskman);
    155 
    156         async_exch_t *exch = async_exchange_begin(session_taskman);
     149        async_exch_t *exch = taskman_exchange_begin();
    157150        aid_t req = async_send_0(exch, TASKMAN_I_AM_NS, NULL);
    158151
Note: See TracChangeset for help on using the changeset viewer.