pthread_join Fix from Nerius Landys

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@333 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
namespace 2010-11-13 13:36:27 +00:00
parent 514d4d9d10
commit 11bb5b5720

View file

@ -520,7 +520,8 @@ void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int))
pthread_t work_threads[MAX_THREADS];
int start, end;
int i=0, status=0;
int i=0;
void *exit_value;
start = I_FloatTime ();
pacifier = showpacifier;
@ -556,7 +557,7 @@ void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int))
}
for (i=0 ; i<numthreads ; i++)
{
if(pthread_join(work_threads[i], (void **)&status) != 0)
if(pthread_join(work_threads[i], &exit_value) != 0)
Error("pthread_join failed");
}
pthread_mutexattr_destroy(&mattrib);