Changeset c7509e5 in mainline


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.

Location:
uspace/lib/libc/generic
Files:
2 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 &&
  • uspace/lib/libc/generic/fibril.c

    rb76f2f8 rc7509e5  
    255255/** Add a fibril to the ready list.
    256256 *
    257  * @param fid           Pinter to the fibril structure of the fibril to be added.
     257 * @param fid           Pinter to the fibril structure of the fibril to be
     258 *                      added.
    258259 */
    259260void fibril_add_ready(fid_t fid)
Note: See TracChangeset for help on using the changeset viewer.