Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/ipc.c


Ignore:
Timestamp:
2007-06-28T00:54:12Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12f91130
Parents:
b9641ee
Message:

Goodbye pseudo threads, welcome fibrils.
The renaming might still be incomplete.

File:
1 edited

Legend:

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

    rb9641ee rbc1f1c2  
    5050#include <kernel/synch/synch.h>
    5151#include <async.h>
    52 #include <psthread.h>
     52#include <fibril.h>
    5353
    5454/** Structure used for keeping track of sent asynchronous calls and queing
     
    6767                } msg;
    6868        } u;
    69         pstid_t ptid;   /**< Pseudothread waiting for sending this call. */
     69        fid_t fid;      /**< Fibril waiting for sending this call. */
    7070} async_call_t;
    7171
     
    217217
    218218                if (can_preempt) {
    219                         call->ptid = psthread_get_id();
    220                         psthread_schedule_next_adv(PS_TO_MANAGER);
     219                        call->fid = fibril_get_id();
     220                        fibril_schedule_next_adv(FIBRIL_TO_MANAGER);
    221221                        /* Async futex unlocked by previous call */
    222222                } else {
    223                         call->ptid = 0;
     223                        call->fid = 0;
    224224                        futex_up(&async_futex);
    225225                }
     
    384384
    385385                futex_up(&async_futex);
    386                 if (call->ptid)
    387                         psthread_add_ready(call->ptid);
     386                if (call->fid)
     387                        fibril_add_ready(call->fid);
    388388               
    389389                if (callid == IPC_CALLRET_FATAL) {
Note: See TracChangeset for help on using the changeset viewer.