X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=calcCI.cpp;h=c71d9c17c96075d4abfa8633e6fa89624c961548;hp=99ce14858825c989216dbd6ab309562218a8ae62;hb=7f503f1b9e22d7e1b44472add2263f263675b7c7;hpb=683863b75f8d8bef2461039a6911b0e9619cc113 diff --git a/calcCI.cpp b/calcCI.cpp index 99ce148..c71d9c1 100644 --- a/calcCI.cpp +++ b/calcCI.cpp @@ -69,7 +69,6 @@ bool quiet; Params *paramsArray; pthread_t *threads; pthread_attr_t attr; -void *status; int rc; CIParams *ciParamsArray; @@ -219,7 +218,7 @@ void sample_theta_vectors_from_count_vectors() { pthread_assert(rc, "pthread_create", "Cannot create thread " + itos(i) + " (numbered from 0) in sample_theta_vectors_from_count_vectors!"); } for (int i = 0; i < num_threads; i++) { - rc = pthread_join(threads[i], &status); + rc = pthread_join(threads[i], NULL); pthread_assert(rc, "pthread_join", "Cannot join thread " + itos(i) + " (numbered from 0) in sample_theta_vectors_from_count_vectors!"); } @@ -359,7 +358,7 @@ void calculate_credibility_intervals(char* imdName) { pthread_assert(rc, "pthread_create", "Cannot create thread " + itos(i) + " (numbered from 0) in calculate_credibility_intervals!"); } for (int i = 0; i < num_threads; i++) { - rc = pthread_join(threads[i], &status); + rc = pthread_join(threads[i], NULL); pthread_assert(rc, "pthread_join", "Cannot join thread " + itos(i) + " (numbered from 0) in calculate_credibility_intervals!"); }