Changeset 90f5d64 in mainline for libc/generic/async.c


Ignore:
Timestamp:
2006-06-03T14:54:51Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc5a0fe1
Parents:
0861786
Message:

AS_AREA_CACHEABLE not needed anymore for sharing.
Added icons to console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/async.c

    r0861786 r90f5d64  
    624624}
    625625
     626/** Send message and return id of the sent message
     627 *
     628 * The return value can be used as input for async_wait() to wait
     629 * for completion.
     630 */
     631aid_t async_send_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2,
     632                   ipcarg_t arg3, ipc_call_t *dataptr)
     633{
     634        amsg_t *msg;
     635
     636        msg = malloc(sizeof(*msg));
     637        msg->done = 0;
     638        msg->dataptr = dataptr;
     639
     640        msg->wdata.active = 1; /* We may sleep in next method, but it
     641                                * will use it's own mechanism */
     642        ipc_call_async_3(phoneid,method,arg1,arg2,arg3, msg,reply_received,1);
     643
     644        return (aid_t) msg;
     645}
     646
    626647/** Wait for a message sent by async framework
    627648 *
Note: See TracChangeset for help on using the changeset viewer.