Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a2c58f6 in mainline


Ignore:
Timestamp:
2009-04-09T19:08:33Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
92fd52d7
Parents:
552823e
Message:

thread_exit() needs to be noreturn as well

Location:
uspace/lib/libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/thread.c

    r552823e ra2c58f6  
    131131{
    132132        __SYSCALL1(SYS_THREAD_EXIT, (sysarg_t) status);
     133        for (;;)
     134                ;
    133135}
    134136
     
    153155int thread_join(thread_id_t thread)
    154156{
     157        return 0;
    155158}
    156159
  • uspace/lib/libc/include/thread.h

    r552823e ra2c58f6  
    4646
    4747extern int thread_create(void (*)(void *), void *, char *, thread_id_t *);
    48 extern void thread_exit(int);
     48extern void thread_exit(int) __attribute__ ((noreturn));
    4949extern void thread_detach(thread_id_t);
    5050extern int thread_join(thread_id_t);
Note: See TracChangeset for help on using the changeset viewer.