You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
438 B
21 lines
438 B
#define __LIBRARY__
|
|
#include <unistd.h>
|
|
|
|
#ifndef _PTHREAD_H_
|
|
#define _PTHREAD_H_
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void *) 0)
|
|
#endif
|
|
|
|
/*声明线程API函数*/
|
|
|
|
_syscall1(int,pthread_attr_init,pthread_attr_t *,attr);
|
|
_syscall3(int,thread_fork,const pthread_attr_t *,attr,void *,start_routine,void *,arg);
|
|
_syscall2(int,thread_join,pthread_t,thread,void **,value_ptr);
|
|
_syscall1(int,thread_exit,void *,value_ptr);
|
|
|
|
#endif
|
|
|
|
|