mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-26 05:41:43 +00:00
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:
parent
514d4d9d10
commit
11bb5b5720
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue