From 9dec9fa6b5355d4c4dd208708c5fb70937971f85 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 28 Jul 2010 02:10:44 +0000 Subject: [PATCH] according to the docs you're supposed to set this or else you will be destroyed by lack of mutexes... SVN revision: 50570 --- legacy/eet/src/lib/eet_lib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index 15501acb15..ec57287002 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -62,6 +62,9 @@ void *alloca (size_t); #ifdef EFL_HAVE_POSIX_THREADS # include +# ifdef HAVE_GNUTLS +GCRY_THREAD_OPTION_PTHREAD_IMPL; +# endif #endif #include @@ -738,7 +741,10 @@ eet_init(void) WRN( "BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, Cryptographic operation are at risk !"); } - +#ifdef EFL_HAVE_POSIX_THREADS + if (gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread)) + WRN("YOU ARE USING PTHREADS, BUT I CANNOT INITIALIZE THREADSAFE GCRYPT OPERATIONS!"); +#endif if (gnutls_global_init()) goto shutdown_eet;