Changeset 116d3f6f in mainline for uspace/lib/libc/include/fibril.h


Ignore:
Timestamp:
2007-10-03T06:55:56Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18525c5
Parents:
5b5d25f
Message:

Rename fibril_schedule_next_adv() to fibril_switch(). Rename
fibril_schedule_next() to fibril_yield(). Some fibril structures could be
uninitialized, set them to zero in fibril_setup(). For some fibrils, the stack
member can be NULL (e.g. every thread's first/main fibril); don't do free on
these stacks when cleaning up after a dead fibril.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/fibril.h

    r5b5d25f r116d3f6f  
    7878extern fibril_t *fibril_setup(void);
    7979extern void fibril_teardown(fibril_t *f);
    80 extern int fibril_schedule_next_adv(fibril_switch_type_t stype);
     80extern int fibril_switch(fibril_switch_type_t stype);
    8181extern void fibril_add_ready(fid_t fid);
    8282extern void fibril_add_manager(fid_t fid);
     
    8686extern void fibril_dec_sercount(void);
    8787
    88 static inline int fibril_schedule_next(void) {
    89         return fibril_schedule_next_adv(FIBRIL_PREEMPT);
     88static inline int fibril_yield(void) {
     89        return fibril_switch(FIBRIL_PREEMPT);
    9090}
    9191
Note: See TracChangeset for help on using the changeset viewer.