Commit 4a550c52 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

pthread_exit called explicitly now

parent 3e49e15d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ void *thread_function_wrapper2(void *dummyPtr)
		(*pfh)(taskNumber + pfs->start, pfs->threadNum);
	}

	int retval = 0;
	pthread_exit(static_cast<void*>(&retval));
	return 0;
}

+2 −0
Original line number Diff line number Diff line
@@ -125,6 +125,8 @@ void *thread_function_wrapper(void *dummyPtr)

	pfh->thread_function_(pfs->threadNum,pfs->blockSize,pfs->total,pfs->mutex);

	int retval = 0;
	pthread_exit(static_cast<void*>(&retval));
	return 0;
}

+2 −0
Original line number Diff line number Diff line
@@ -144,6 +144,8 @@ void *thread_function_wrapper(void *dummyPtr)
		pfh->doTask(taskNumber, pfs->threadNum);
	}

	int retval = 0;
	pthread_exit(static_cast<void*>(&retval));
	return 0;
}