Changeset f307f12 in mainline for uspace/srv/console/console.c


Ignore:
Timestamp:
2009-10-11T16:26:01Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c088fd4
Parents:
c123609 (diff), ba8f8cb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge experimental support for timeoutable fibril condition variables.
The merge includes a fix for an IPC/async framework problem caused by the fact
that timeoutable entities in the async framework (and also fibril
synchronization code) often call gettimeofday() when async_futex is held, and
the fact that gettimeofday() had a dependency on async framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    rc123609 rf307f12  
    429429        ipc_callid_t callid;
    430430        size_t size;
    431         if (!ipc_data_write_receive(&callid, &size)) {
     431        if (!async_data_write_receive(&callid, &size)) {
    432432                ipc_answer_0(callid, EINVAL);
    433433                ipc_answer_0(rid, EINVAL);
     
    442442        }
    443443       
    444         (void) ipc_data_write_finalize(callid, buf, size);
     444        (void) async_data_write_finalize(callid, buf, size);
    445445       
    446446        async_serialize_start();
     
    464464        ipc_callid_t callid;
    465465        size_t size;
    466         if (!ipc_data_read_receive(&callid, &size)) {
     466        if (!async_data_read_receive(&callid, &size)) {
    467467                ipc_answer_0(callid, EINVAL);
    468468                ipc_answer_0(rid, EINVAL);
     
    489489       
    490490        if (pos == size) {
    491                 (void) ipc_data_read_finalize(callid, buf, size);
     491                (void) async_data_read_finalize(callid, buf, size);
    492492                ipc_answer_1(rid, EOK, size);
    493493                free(buf);
     
    713713       
    714714        if (interbuffer) {
    715                 if (ipc_share_out_start(fb_info.phone, interbuffer,
     715                if (async_share_out_start(fb_info.phone, interbuffer,
    716716                    AS_AREA_READ) != EOK) {
    717717                        as_area_destroy(interbuffer);
Note: See TracChangeset for help on using the changeset viewer.