Changeset c4c5de5 in mainline for libc/include
- Timestamp:
- 2006-03-24T14:29:19Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8fe1cdb
- Parents:
- 520492a
- Location:
- libc/include
- Files:
-
- 2 edited
-
psthread.h (modified) (4 diffs)
-
thread.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libc/include/psthread.h
r520492a rc4c5de5 32 32 #include <libarch/psthread.h> 33 33 #include <libadt/list.h> 34 #include <libarch/thread.h> 34 35 35 36 #ifndef context_set … … 43 44 44 45 struct psthread_data { 45 struct psthread_data *self; /* ia32, amd64 needs to get self address */46 47 46 link_t link; 48 47 context_t ctx; … … 50 49 void *arg; 51 50 int (*func)(void *); 51 tcb_t *tcb; 52 52 53 53 struct psthread_data *waiter; … … 64 64 int psthread_schedule_next(void); 65 65 int psthread_join(pstid_t psthrid); 66 psthread_data_t * psthread_setup(tcb_t *tcb); 67 void psthread_teardown(psthread_data_t *pt); 68 66 69 67 70 #endif -
libc/include/thread.h
r520492a rc4c5de5 32 32 #include <kernel/proc/uarg.h> 33 33 #include <libarch/thread.h> 34 #include <types.h> 34 35 35 36 extern void __thread_entry(void); … … 38 39 extern int thread_create(void (* function)(void *arg), void *arg, char *name); 39 40 extern void thread_exit(int status); 40 void * __make_tls(void); 41 void __free_tls(void *); 41 tcb_t * __make_tls(void); 42 tcb_t * __alloc_tls(void **data, size_t size); 43 void __free_tls(tcb_t *); 44 void __free_tls_arch(tcb_t *, size_t size); 42 45 43 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
