Changeset 201abde in mainline for uspace/libc/include/thread.h


Ignore:
Timestamp:
2007-04-07T20:06:52Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e58979
Parents:
6adbe3c2
Message:

make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/include/thread.h

    r6adbe3c2 r201abde  
    4040#include <types.h>
    4141
     42typedef uint64_t thread_id_t;
     43
    4244extern void __thread_entry(void);
    4345extern void __thread_main(uspace_arg_t *uarg);
    4446
    45 extern int thread_create(void (* function)(void *arg), void *arg, char *name);
     47extern int thread_create(void (* function)(void *), void *arg, char *name, thread_id_t *tid);
    4648extern void thread_exit(int status);
    47 extern void thread_detach(int thread);
    48 extern int thread_join(int thread);
    49 extern int thread_get_id(void);
     49extern void thread_detach(thread_id_t thread);
     50extern int thread_join(thread_id_t thread);
     51extern thread_id_t thread_get_id(void);
    5052extern tcb_t * __make_tls(void);
    5153extern tcb_t * __alloc_tls(void **data, size_t size);
Note: See TracChangeset for help on using the changeset viewer.