Changeset 116d1ef4 in mainline for generic/src/ipc/ipc.c
- Timestamp:
- 2006-06-02T12:26:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0c5901
- Parents:
- 01ebbdf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/ipc/ipc.c
r01ebbdf r116d1ef4 143 143 144 144 ipc_call(phone, request); 145 ipc_wait_for_call(&sync_box, SYNCH_NO_TIMEOUT, SYNCH_ BLOCKING);145 ipc_wait_for_call(&sync_box, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE); 146 146 } 147 147 … … 306 306 * @param usec Timeout in microseconds. See documentation for waitq_sleep_timeout() for 307 307 * decription of its special meaning. 308 * @param nonblocking Blocking vs. non-blocking operation mode switch. See documentation309 * for waitq_sleep_timeout()for description of its special meaning.308 * @param flags Select mode of sleep operation. See documentation for waitq_sleep_timeout()i 309 * for description of its special meaning. 310 310 * @return Recived message address 311 311 * - to distinguish between call and answer, look at call->flags 312 312 */ 313 call_t * ipc_wait_for_call(answerbox_t *box, __u32 usec, int nonblocking)313 call_t * ipc_wait_for_call(answerbox_t *box, __u32 usec, int flags) 314 314 { 315 315 call_t *request; … … 318 318 319 319 restart: 320 rc = waitq_sleep_timeout(&box->wq, usec, nonblocking);320 rc = waitq_sleep_timeout(&box->wq, usec, flags); 321 321 if (SYNCH_FAILED(rc)) 322 322 return NULL; … … 413 413 /* Wait for all async answers to arrive */ 414 414 while (atomic_get(&task->active_calls)) { 415 call = ipc_wait_for_call(&task->answerbox, SYNCH_NO_TIMEOUT, SYNCH_ BLOCKING);415 call = ipc_wait_for_call(&task->answerbox, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE); 416 416 ASSERT((call->flags & IPC_CALL_ANSWERED) || (call->flags & IPC_CALL_NOTIF)); 417 417 ASSERT(! (call->flags & IPC_CALL_STATIC_ALLOC));
Note:
See TracChangeset
for help on using the changeset viewer.