summaryrefslogtreecommitdiffstats
path: root/crypto/threads
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-06-21 19:16:50 +0200
committerRichard Levitte <levitte@openssl.org>2015-06-21 22:12:07 +0200
commit05d20833e34cc63b928b45a5fb4bdedfd10d841e (patch)
tree13728972d790ceb0a4e766774197d1bbe87492ed /crypto/threads
parent90ee3c1646a5efc1a24aa4d89ab15b3cbd3dbd75 (diff)
Cleanup mttest.c : do not try to output reference counts when threads are done
Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 964626957f79e07ed97756527cdc7e84007c60c9)
Diffstat (limited to 'crypto/threads')
-rw-r--r--crypto/threads/mttest.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c
index 2621ec0e5c..eb97430fba 100644
--- a/crypto/threads/mttest.c
+++ b/crypto/threads/mttest.c
@@ -842,8 +842,12 @@ void do_threads(SSL_CTX *s_ctx, SSL_CTX *c_ctx)
thr_join(thread_ctx[i], NULL, NULL);
}
+#if 0 /* We can't currently find out the reference amount */
BIO_printf(bio_stdout, "solaris threads done (%d,%d)\n",
s_ctx->references, c_ctx->references);
+#else
+ BIO_printf(bio_stdout, "solaris threads done\n");
+#endif
}
void solaris_thread_id(CRYPTO_THREADID *tid)
@@ -926,8 +930,12 @@ void do_threads(SSL_CTX *s_ctx, SSL_CTX *c_ctx)
wait(NULL);
}
+#if 0 /* We can't currently find out the reference amount */
BIO_printf(bio_stdout, "irix threads done (%d,%d)\n",
s_ctx->references, c_ctx->references);
+#else
+ BIO_printf(bio_stdout, "irix threads done\n");
+#endif
}
unsigned long irix_thread_id(void)
@@ -1016,8 +1024,12 @@ void do_threads(SSL_CTX *s_ctx, SSL_CTX *c_ctx)
pthread_join(thread_ctx[i], NULL);
}
+#if 0 /* We can't currently find out the reference amount */
BIO_printf(bio_stdout, "pthreads threads done (%d,%d)\n",
s_ctx->references, c_ctx->references);
+#else
+ BIO_printf(bio_stdout, "pthreads threads done\n");
+#endif
}
void pthreads_thread_id(CRYPTO_THREADID *tid)
@@ -1094,8 +1106,12 @@ void do_threads(SSL_CTX *s_ctx, SSL_CTX *c_ctx)
for (i = 0; i < thread_number; i++) {
MPKSemaphoreWait(ThreadSem);
}
+#if 0 /* We can't currently find out the reference amount */
BIO_printf(bio_stdout, "netware threads done (%d,%d)\n",
s_ctx->references, c_ctx->references);
+#else
+ BIO_printf(bio_stdout, "netware threads done\n");
+#endif
}
unsigned long netware_thread_id(void)