Changeset bc1f1c2 in mainline for uspace/lib/libc/generic/libc.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/libc.c

    rb9641ee rbc1f1c2  
    4343#include <thread.h>
    4444#include <malloc.h>
    45 #include <psthread.h>
     45#include <fibril.h>
    4646#include <io/stream.h>
    4747#include <ipc/ipc.h>
     
    5858void __main(void)
    5959{
    60         psthread_data_t *pt;
     60        fibril_t *f;
    6161
    6262        (void) as_area_create(&_heap, 1, AS_AREA_WRITE | AS_AREA_READ);
    6363        _async_init();
    64         pt = psthread_setup();
    65         __tcb_set(pt->tcb);
     64        f = fibril_setup();
     65        __tcb_set(f->tcb);
    6666}
    6767
     
    7575void __exit(void)
    7676{
    77         psthread_teardown(__tcb_get()->pst_data);
     77        fibril_teardown(__tcb_get()->fibril_data);
    7878        _exit(0);
    7979}
Note: See TracChangeset for help on using the changeset viewer.