Avoiding unnecessary use of pthread_exit()

This commit is contained in:
Thomas Schmitt 2010-02-05 14:52:24 +01:00
parent ce723a8c39
commit 633a8ada9e
1 changed files with 10 additions and 0 deletions

View File

@ -924,7 +924,12 @@ void *write_function(void *arg)
#endif
iso_ring_buffer_writer_close(target->buffer, 0);
#ifdef Libisofs_with_pthread_exiT
pthread_exit(NULL);
#else
return NULL;
#endif
write_error: ;
if (res == ISO_CANCELED) {
@ -946,7 +951,12 @@ void *write_function(void *arg)
#endif
#ifdef Libisofs_with_pthread_exiT
pthread_exit(NULL);
#else
return NULL;
#endif
}