Changeset 1c20e22 in mainline


Ignore:
Timestamp:
2006-05-31T16:50:28Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c594489
Parents:
5052046
Message:

Removed workaround for gcc 4.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/async.c

    r5052046 r1c20e22  
    247247        msg_t *msg;
    248248        ipc_callid_t callid;
    249         connection_t *conn;
    250249       
    251250        assert(PS_connection);
     
    253252        futex_down(&async_futex);
    254253
    255         conn = PS_connection;
    256254        /* If nothing in queue, wait until something appears */
    257         if (list_empty(&conn->msg_queue)) {
    258                 conn->active = 0;
     255        if (list_empty(&PS_connection->msg_queue)) {
     256                PS_connection->active = 0;
    259257                psthread_schedule_next_adv(PS_TO_MANAGER);
    260258        }
    261259       
    262         msg = list_get_instance(conn->msg_queue.next, msg_t, link);
     260        msg = list_get_instance(PS_connection->msg_queue.next, msg_t, link);
    263261        list_remove(&msg->link);
    264262        callid = msg->callid;
     
    301299        unsigned long key;
    302300        msg_t *msg;
    303         connection_t *conn;
    304301
    305302        /* Setup thread local connection pointer */
    306303        PS_connection = (connection_t *)arg;
    307         conn = PS_connection;
    308         conn->cthread(conn->callid, &conn->call);
     304        PS_connection->cthread(PS_connection->callid, &PS_connection->call);
    309305
    310306        /* Remove myself from connection hash table */
    311307        futex_down(&async_futex);
    312         key = conn->in_phone_hash;
     308        key = PS_connection->in_phone_hash;
    313309        hash_table_remove(&conn_hash_table, &key, 1);
    314310        futex_up(&async_futex);
    315311        /* Answer all remaining messages with ehangup */
    316         while (!list_empty(&conn->msg_queue)) {
    317                 msg = list_get_instance(conn->msg_queue.next, msg_t, link);
     312        while (!list_empty(&PS_connection->msg_queue)) {
     313                msg = list_get_instance(PS_connection->msg_queue.next, msg_t, link);
    318314                list_remove(&msg->link);
    319315                ipc_answer_fast(msg->callid, EHANGUP, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.