~maresja1/+junk/helenos_qemu_porting

« back to all changes in this revision

Viewing changes to uspace/lib/c/include/thread.h

  • Committer: Jan Mares
  • Date: 2015-01-31 12:40:12 UTC
  • Revision ID: jan@localhost.localdomain-20150131124012-o9p3o06x3u15voyz
Added join fot thread, failing to get thread_id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <sys/types.h>
40
40
#include <abi/proc/thread.h>
41
41
 
42
 
extern int thread_create(void (*)(void *), void *, const char *, thread_id_t *);
43
 
extern void thread_exit(int) __attribute__((noreturn));
 
42
#define THREAD_MAX 1024
 
43
 
 
44
typedef void* thread_retval_t;
 
45
 
 
46
extern int thread_create(thread_retval_t(*)(void *), void *, const char *, thread_id_t *);
 
47
extern void thread_exit(thread_retval_t) __attribute__((noreturn));
44
48
extern int thread_detach(thread_id_t);
45
 
extern int thread_join(thread_id_t);
 
49
extern int thread_join(thread_id_t, thread_retval_t*);
46
50
extern thread_id_t thread_get_id(void);
47
51
 
48
52
#endif