Changeset 80649a91 in mainline for libc/include/psthread.h
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.