Changeset 29a9f62 in mainline for libc/include/thread.h


Ignore:
Timestamp:
2006-03-23T10:33:55Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77bd004
Parents:
1cef26f
Message:

Added symbolic links 'libarch','libadt','libipc' into libc/include,
so that it can be easily used from anywhere.
Renamed thread_main to thread_main.
Allowed MIPS to compile with -O0.
Added non-preemptible threads support (not yet secured by futexes).
Added simple way to hold Thread Local Storage. Support for compiler
will be added later.
This update breaks IA64 uspace.

There is some forgotten spinlock_lock() in futexes, amd64 gets locked
in the secod uspace thread probably with preemption disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/thread.h

    r1cef26f r29a9f62  
    3131
    3232#include <kernel/proc/uarg.h>
     33#include <libarch/thread.h>
    3334
    3435extern void __thread_entry(void);
    35 extern void thread_main(uspace_arg_t *uarg);
     36extern void __thread_main(uspace_arg_t *uarg);
    3637
    3738extern int thread_create(void (* function)(void *arg), void *arg, char *name);
    3839extern void thread_exit(int status);
     40void * __make_tls(void);
     41void __free_tls(void *);
    3942
    4043#endif
Note: See TracChangeset for help on using the changeset viewer.