Changes in uspace/lib/c/generic/async.c [8bf1eeb:9c31643] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r8bf1eeb r9c31643 430 430 431 431 fid_t fid = fibril_create(notification_fibril, msg); 432 if (fid == 0) {433 free(msg);434 futex_up(&async_futex);435 return false;436 }437 438 432 fibril_add_ready(fid); 439 433 … … 687 681 conn->wdata.fid = fibril_create(connection_fibril, conn); 688 682 689 if ( conn->wdata.fid == 0) {683 if (!conn->wdata.fid) { 690 684 free(conn); 691 692 685 if (callid) 693 686 ipc_answer_0(callid, ENOMEM); 694 695 687 return (uintptr_t) NULL; 696 688 } … … 861 853 { 862 854 fid_t fid = fibril_create(async_manager_fibril, NULL); 863 if (fid != 0) 864 fibril_add_manager(fid); 855 fibril_add_manager(fid); 865 856 } 866 857 … … 1567 1558 } 1568 1559 1569 /** Start IPC_M_DATA_READ using the async framework.1570 *1571 * @param phoneid Phone that will be used to contact the receiving side.1572 * @param dst Address of the beginning of the destination buffer.1573 * @param size Size of the destination buffer (in bytes).1574 * @param dataptr Storage of call data (arg 2 holds actual data size).1575 * @return Hash of the sent message or 0 on error.1576 */1577 aid_t async_data_read(int phoneid, void *dst, size_t size, ipc_call_t *dataptr)1578 {1579 return async_send_2(phoneid, IPC_M_DATA_READ, (sysarg_t) dst,1580 (sysarg_t) size, dataptr);1581 }1582 1583 1560 /** Wrapper for IPC_M_DATA_READ calls using the async framework. 1584 1561 *
Note:
See TracChangeset
for help on using the changeset viewer.