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:
Ingo Weinhold
2010-04-07 18:27:34 +00:00
parent 814f5ae159
commit dff3f62071
5 changed files with 7 additions and 0 deletions
@@ -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()
@@ -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()
@@ -41,6 +41,7 @@ void *a_thread_func()
}
pthread_exit(0);
return NULL;
}
int main()
@@ -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()
@@ -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;
}