Changeset c7509e5 in mainline for uspace/lib/libc/generic/async.c


Ignore:
Timestamp:
2007-07-06T17:43:26Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
398d967
Parents:
b76f2f8
Message:

Add comment clarifying how a fibril waiting for a message gets rescheduled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/async.c

    rb76f2f8 rc7509e5  
    357357
    358358                conn->wdata.active = 0;
     359                /*
     360                 * Note: the current fibril will be rescheduled either due to a
     361                 * timeout or due to an arriving message destined to it. In the
     362                 * former case, handle_expired_timeouts() and, in the latter
     363                 * case, route_call() will perform the wakeup.
     364                 */
    359365                fibril_schedule_next_adv(FIBRIL_TO_MANAGER);
    360366                /*
    361367                 * Futex is up after getting back from async_manager get it
    362368                 * again.
    363                 */
     369                 */
    364370                futex_down(&async_futex);
    365371                if (usecs && conn->wdata.timedout &&
Note: See TracChangeset for help on using the changeset viewer.