diff options
| -rw-r--r-- | charf.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -3,7 +3,6 @@ #include <math.h> //for multithreading #include <pthread.h> -#include <assert.h> #define DOUBLEMODE 0 #define DOUBLEERRORMODE 1 @@ -222,13 +221,11 @@ int main() { printf("In main: Creating thread %d.\n", i); args[i] = (Args){.p=p, .i=i}; result_code = pthread_create(&threads[i], NULL, compute_chunk, &(args[i])); - assert(!result_code); } // wait for each thread to complete for (int i = 0; i < NUM_THREADS; i++) { result_code = pthread_join(threads[i], NULL); - assert(!result_code); printf("In main: Thread %d has ended.\n", i); } |
