1
0
Fork 0

Update: Removed unused variable.

I'm not sure if we should check for the result of pthread_join().
But how it was doesn't do that anyway.
This commit is contained in:
Philipp Schafft 2018-06-20 06:37:10 +00:00
parent 9bfb3a34fc
commit 11b9c61ae7
1 changed files with 1 additions and 2 deletions

View File

@ -750,9 +750,8 @@ void thread_library_unlock(void)
void thread_join(thread_type *thread)
{
void *ret;
int i;
i = pthread_join(thread->sys_thread, &ret);
pthread_join(thread->sys_thread, &ret);
_mutex_lock(&_threadtree_mutex);
avl_delete(_threadtree, thread, _free_thread);
_mutex_unlock(&_threadtree_mutex);