Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/ipc.c
- Timestamp:
- 2007-06-28T00:54:12Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12f91130
- Parents:
- b9641ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/ipc.c
rb9641ee rbc1f1c2 50 50 #include <kernel/synch/synch.h> 51 51 #include <async.h> 52 #include < psthread.h>52 #include <fibril.h> 53 53 54 54 /** Structure used for keeping track of sent asynchronous calls and queing … … 67 67 } msg; 68 68 } u; 69 pstid_t ptid; /**< Pseudothreadwaiting for sending this call. */69 fid_t fid; /**< Fibril waiting for sending this call. */ 70 70 } async_call_t; 71 71 … … 217 217 218 218 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); 221 221 /* Async futex unlocked by previous call */ 222 222 } else { 223 call-> ptid = 0;223 call->fid = 0; 224 224 futex_up(&async_futex); 225 225 } … … 384 384 385 385 futex_up(&async_futex); 386 if (call-> ptid)387 psthread_add_ready(call->ptid);386 if (call->fid) 387 fibril_add_ready(call->fid); 388 388 389 389 if (callid == IPC_CALLRET_FATAL) {
Note:
See TracChangeset
for help on using the changeset viewer.