summaryrefslogtreecommitdiff
path: root/librabbitmq/win32/threads.h
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2017-12-04 20:33:51 -0800
committerAlan Antonuk <alan.antonuk@gmail.com>2017-12-10 22:38:25 -0800
commitb80de27b8782772dfb3fe8253940663697f680ee (patch)
tree833a69221f00ead116b849e9a3a01bbe90c10b4f /librabbitmq/win32/threads.h
parentcdfce5a328a59bc9bb51428be0585715546c4634 (diff)
downloadrabbitmq-c-b80de27b8782772dfb3fe8253940663697f680ee.tar.gz
ssl: OpenSSL should require explicitly un-init
Instead of un-initializing OpenSSL when the connection count reaches 0 require API users to explicitly un-initialize OpenSSL if they care to. In the common case this will require much less work to start a new SSL connection. As a side effect: cleanup and simplify the OpenSSL initialization routines, including removing the thread-safety checks done for the BIO since they will be called under the OpenSSL locking.
Diffstat (limited to 'librabbitmq/win32/threads.h')
-rw-r--r--librabbitmq/win32/threads.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/librabbitmq/win32/threads.h b/librabbitmq/win32/threads.h
index 5862df4..3ae571f 100644
--- a/librabbitmq/win32/threads.h
+++ b/librabbitmq/win32/threads.h
@@ -44,5 +44,6 @@ DWORD pthread_self(void);
int pthread_mutex_init(pthread_mutex_t *, void *attr);
int pthread_mutex_lock(pthread_mutex_t *);
int pthread_mutex_unlock(pthread_mutex_t *);
+int pthread_mutex_destroy(pthread_mutex_t *);
#endif /* AMQP_THREAD_H */