Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/thread.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/thread.c
rb9641ee rbc1f1c2 38 38 #include <libarch/faddr.h> 39 39 #include <kernel/proc/uarg.h> 40 #include < psthread.h>40 #include <fibril.h> 41 41 #include <string.h> 42 42 #include <async.h> … … 101 101 void __thread_main(uspace_arg_t *uarg) 102 102 { 103 psthread_data_t *pt;104 105 pt = psthread_setup();106 __tcb_set( pt->tcb);103 fibril_t *f; 104 105 f = fibril_setup(); 106 __tcb_set(f->tcb); 107 107 108 108 uarg->uspace_thread_function(uarg->uspace_thread_arg); … … 113 113 /* If there is a manager, destroy it */ 114 114 async_destroy_manager(); 115 psthread_teardown(pt);115 fibril_teardown(f); 116 116 117 117 thread_exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.