Changeset 14de0dd8 in mainline
- Timestamp:
- 2006-10-30T22:43:41Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b43a04
- Parents:
- 3e35fd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/async.c
r3e35fd7 r14de0dd8 37 37 * 38 38 * The aim of this library is facilitating writing programs utilizing 39 * the asynchronous nature of Helen osIPC, yet using a normal way39 * the asynchronous nature of HelenOS IPC, yet using a normal way 40 40 * of programming. 41 41 * … … 80 80 * callid = async_get_call(&call); 81 81 * handle(callid, call); 82 * ipc_answer_fast(callid, 1, 2,3);82 * ipc_answer_fast(callid, 1, 2, 3); 83 83 * 84 84 * callid = async_get_call(&call); … … 105 105 106 106 typedef struct { 107 struct timeval expires; 108 int inlist; /**< If true, this struct is in timeout list */107 struct timeval expires; /**< Expiration time for waiting thread */ 108 int inlist; /**< If true, this struct is in timeout list */ 109 109 link_t link; 110 110 111 pstid_t ptid; 112 int active; 113 int timedout; 111 pstid_t ptid; /**< Thread waiting for this message */ 112 int active; /**< If this thread is currently active */ 113 int timedout; /**< If true, we timed out */ 114 114 } awaiter_t; 115 115 … … 117 117 awaiter_t wdata; 118 118 119 int done; 120 ipc_call_t *dataptr; 121 119 int done; /**< If reply was received */ 120 ipc_call_t *dataptr; /**< Pointer where the answer data 121 * is stored */ 122 122 ipcarg_t retval; 123 123 } amsg_t; … … 132 132 awaiter_t wdata; 133 133 134 link_t link; 135 ipcarg_t in_phone_hash; 136 link_t msg_queue; 134 link_t link; /**< Hash table link */ 135 ipcarg_t in_phone_hash; /**< Incoming phone hash. */ 136 link_t msg_queue; /**< Messages that should be delivered to this thread */ 137 137 /* Structures for connection opening packet */ 138 138 ipc_callid_t callid; 139 139 ipc_call_t call; 140 ipc_callid_t close_callid; 140 ipc_callid_t close_callid; /* Identification of closing packet */ 141 141 void (*cthread)(ipc_callid_t,ipc_call_t *); 142 142 } connection_t;
Note:
See TracChangeset
for help on using the changeset viewer.