summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--charf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/charf.c b/charf.c
index 032fd89..0508cc4 100644
--- a/charf.c
+++ b/charf.c
@@ -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);
}