Changeset 23882034 in mainline for uspace/lib/c/generic/async.c


Ignore:
Timestamp:
2011-01-25T23:41:18Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b75e929
Parents:
8526e585
Message:

Provide means of obtaining one's own client data.

File:
1 edited

Legend:

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

    r8526e585 r23882034  
    151151        sysarg_t in_phone_hash;
    152152       
     153        /** Link to the client tracking structure. */
     154        client_t *client;
     155
    153156        /** Messages that should be delivered to this fibril. */
    154157        link_t msg_queue;
     
    191194{
    192195        async_client_data_destroy = dtor;
     196}
     197
     198void *async_client_data_get(void)
     199{
     200        assert(FIBRIL_connection);
     201
     202        return FIBRIL_connection->client->data;
    193203}
    194204
     
    574584        }
    575585        futex_up(&async_futex);
     586
     587        FIBRIL_connection->client = cl;
    576588
    577589        /*
Note: See TracChangeset for help on using the changeset viewer.