Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/thread.c


Ignore:
Timestamp:
2007-06-28T00:54:12Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12f91130
Parents:
b9641ee
Message:

Goodbye pseudo threads, welcome fibrils.
The renaming might still be incomplete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/thread.c

    rb9641ee rbc1f1c2  
    3838#include <libarch/faddr.h>
    3939#include <kernel/proc/uarg.h>
    40 #include <psthread.h>
     40#include <fibril.h>
    4141#include <string.h>
    4242#include <async.h>
     
    101101void __thread_main(uspace_arg_t *uarg)
    102102{
    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);
    107107       
    108108        uarg->uspace_thread_function(uarg->uspace_thread_arg);
     
    113113        /* If there is a manager, destroy it */
    114114        async_destroy_manager();
    115         psthread_teardown(pt);
     115        fibril_teardown(f);
    116116
    117117        thread_exit(0);
Note: See TracChangeset for help on using the changeset viewer.