mirror of
https://github.com/plasma-umass/coz.git
synced 2024-10-05 17:58:25 +03:00
Fix error in benchmark
Discovered by compiling with clang instead.
This commit is contained in:
parent
04f5c16ce9
commit
6e154b152d
@ -102,7 +102,7 @@ void sort_pthreads(void *base, size_t num_elems, size_t width,
|
||||
/* Barrier, wait for all threads to finish */
|
||||
for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
int ret_val;
|
||||
long ret_val;
|
||||
CHECK_ERROR(pthread_join(tid[i], (void **)(void*)&ret_val) != 0);
|
||||
CHECK_ERROR(ret_val != 0);
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ void wordcount_splitter(void *data_in)
|
||||
/* Barrier, wait for all threads to finish */
|
||||
for (i = 0; i < num_procs; i++)
|
||||
{
|
||||
int ret_val;
|
||||
long ret_val;
|
||||
CHECK_ERROR(pthread_join(tid[i], (void **)(void*)&ret_val) != 0);
|
||||
CHECK_ERROR(ret_val != 0);
|
||||
}
|
||||
@ -203,7 +203,7 @@ void wordcount_splitter(void *data_in)
|
||||
/* Barrier, wait for all threads to finish */
|
||||
for (i = 0; i < num_threads; i++)
|
||||
{
|
||||
int ret_val;
|
||||
long ret_val;
|
||||
CHECK_ERROR(pthread_join(tid[i], (void **)(void*)&ret_val) != 0);
|
||||
CHECK_ERROR(ret_val != 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user