Changeset 80649a91 in mainline for libc/include/psthread.h


Ignore:
Timestamp:
2006-05-21T19:28:37Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a410beb
Parents:
1ee11f4
Message:

Merged libadt into libc.
Made lot of psthread and thread stuff thread-safe.
Added new driver framework for easy C connection programming.
Changed FB code to use new API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/psthread.h

    r1ee11f4 r80649a91  
    4141#endif /* context_set */
    4242
     43typedef enum {
     44        PS_TO_MANAGER,
     45        PS_FROM_MANAGER,
     46        PS_PREEMPT
     47} pschange_type;
     48
    4349typedef sysarg_t pstid_t;
    4450
     
    6268
    6369pstid_t psthread_create(int (*func)(void *), void *arg);
    64 int psthread_schedule_next(void);
    6570int psthread_join(pstid_t psthrid);
    66 psthread_data_t * psthread_setup(tcb_t *tcb);
     71psthread_data_t * psthread_setup(void);
    6772void psthread_teardown(psthread_data_t *pt);
     73int psthread_schedule_next_adv(pschange_type ctype);
     74void psthread_add_ready(pstid_t ptid);
     75void psthread_add_manager(pstid_t psthrid);
     76void psthread_remove_manager(void);
     77
     78static inline int psthread_schedule_next() {
     79        return psthread_schedule_next_adv(PS_PREEMPT);
     80}
    6881
    6982
Note: See TracChangeset for help on using the changeset viewer.