We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025adee commit 49e02cdCopy full SHA for 49e02cd
include/lib.h
@@ -22,7 +22,7 @@
22
extern int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
23
typedef void *(*pfunc_t)(void *);
24
extern pthread_t threads[];
25
-extern int newthread(pfunc_t thread_func);
+extern pthread_t newthread(pfunc_t thread_func);
26
27
#define gettid() syscall(SYS_gettid)
28
shell/main.c
@@ -19,7 +19,7 @@ extern void tcp_timer(void);
19
*/
20
pthread_t threads[4];
21
-int newthread(pfunc_t thread_func)
+pthread_t newthread(pfunc_t thread_func)
{
pthread_t tid;
if (pthread_create(&tid, NULL, thread_func, NULL))
0 commit comments