Changeset 80649a91 in mainline for libc/include
- Timestamp:
- 2006-05-21T19:28:37Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a410beb
- Parents:
- 1ee11f4
- Location:
- libc/include
- Files:
-
- 2 edited
- 3 moved
-
ipc/ipc.h (modified) (3 diffs)
-
libadt/fifo.h (moved) (moved from libadt/include/fifo.h )
-
libadt/hash_table.h (moved) (moved from libadt/include/hash_table.h )
-
libadt/list.h (moved) (moved from libadt/include/list.h )
-
psthread.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libc/include/ipc/ipc.h
r1ee11f4 r80649a91 34 34 #include <libc.h> 35 35 #include <types.h> 36 #include <kernel/synch/synch.h> 36 37 37 38 typedef sysarg_t ipcarg_t; … … 54 55 extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, 55 56 ipcarg_t *result); 56 extern ipc_callid_t ipc_wait_ for_call(ipc_call_t *data);57 extern ipc_callid_t ipc_wait_cycle(ipc_call_t *call, uint32_t usec, int flags); 57 58 extern ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *data, uint32_t usec); 59 static inline ipc_callid_t ipc_wait_for_call(ipc_call_t *data) 60 { 61 return ipc_wait_for_call_timeout(data, SYNCH_NO_TIMEOUT); 62 } 58 63 extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data); 59 64 … … 72 77 extern int ipc_unregister_irq(int irq); 73 78 extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1); 74 extern void _ipc_init(void);75 79 76 80 #endif -
libc/include/psthread.h
r1ee11f4 r80649a91 41 41 #endif /* context_set */ 42 42 43 typedef enum { 44 PS_TO_MANAGER, 45 PS_FROM_MANAGER, 46 PS_PREEMPT 47 } pschange_type; 48 43 49 typedef sysarg_t pstid_t; 44 50 … … 62 68 63 69 pstid_t psthread_create(int (*func)(void *), void *arg); 64 int psthread_schedule_next(void);65 70 int psthread_join(pstid_t psthrid); 66 psthread_data_t * psthread_setup( tcb_t *tcb);71 psthread_data_t * psthread_setup(void); 67 72 void psthread_teardown(psthread_data_t *pt); 73 int psthread_schedule_next_adv(pschange_type ctype); 74 void psthread_add_ready(pstid_t ptid); 75 void psthread_add_manager(pstid_t psthrid); 76 void psthread_remove_manager(void); 77 78 static inline int psthread_schedule_next() { 79 return psthread_schedule_next_adv(PS_PREEMPT); 80 } 68 81 69 82
Note:
See TracChangeset
for help on using the changeset viewer.
