From d9a2aecb95aadc3af1b8ff14201545fc81a8880d Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Mon, 5 Mar 2012 15:18:28 -0600 Subject: [PATCH] 1.45_01: fix instable get_my_thread_id witrh extra DIE handler, GLOBAL_openssl_mutex is static --- SSLeay.xs | 6 ++++-- lib/Net/SSLeay.pm | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/SSLeay.xs b/SSLeay.xs index ad89735..f49a587 100644 --- a/SSLeay.xs +++ b/SSLeay.xs @@ -105,9 +105,10 @@ DWORD GLOBAL_openssl_mutex_creator; UV get_my_thread_id(void) /* returns threads->tid() value */ { dSP; - UV tid; + UV tid = 0; int count; +#ifdef USE_THREADS ENTER; SAVETMPS; PUSHMARK(SP); @@ -123,6 +124,7 @@ UV get_my_thread_id(void) /* returns threads->tid() value */ PUTBACK; FREETMPS; LEAVE; +#endif return tid; } @@ -257,7 +259,7 @@ void openssl_threads_cleanup(void) #endif #endif for (i=0; i