pthread_exit() cannot return, but the "noreturn" attribute is really a compiler
feature (which we haven't set yet). So return some dummy value. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36068 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+2
@@ -72,6 +72,8 @@ void *t1_func(void *arg)
|
||||
fprintf(stderr,"Test FAILED: pthread_cond_timedwait return %d instead of ETIMEDOUT\n", rc);
|
||||
pthread_exit((void*)PTS_FAIL);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
+2
@@ -62,6 +62,8 @@ void *t1_func(void *arg)
|
||||
fprintf(stderr,"pthread_cond_timedwait return %d instead of ETIMEDOUT\n", rc);
|
||||
exit(PTS_FAIL);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
+1
@@ -41,6 +41,7 @@ void *a_thread_func()
|
||||
}
|
||||
|
||||
pthread_exit(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
+1
@@ -50,6 +50,7 @@ void *a_thread_func()
|
||||
|
||||
/* The thread ends here, the destructor for the key should now be called after this */
|
||||
pthread_exit(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
+1
@@ -42,6 +42,7 @@ void *a_thread_func()
|
||||
/* Try to unlock the mutex that main already locked. */
|
||||
ret=pthread_mutex_unlock(&mutex);
|
||||
pthread_exit((void*)0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user