From 6dfa59954d882971e4516192f18319cbc75b5e4b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 16 Feb 2017 14:25:49 +0100 Subject: library: Initialize p11_virtual_mutex for Windows --- common/library.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/library.c b/common/library.c index effb3a6..37cb1c8 100644 --- a/common/library.c +++ b/common/library.c @@ -179,6 +179,7 @@ p11_library_init (void) p11_debug_init (); p11_debug ("initializing library"); p11_mutex_init (&p11_library_mutex); + p11_mutex_init (&p11_virtual_mutex); thread_local = TlsAlloc (); if (thread_local == TLS_OUT_OF_INDEXES) p11_debug ("couldn't setup tls"); @@ -210,6 +211,7 @@ p11_library_uninit (void) LocalFree (data); TlsFree (thread_local); } + p11_mutex_uninit (&p11_virtual_mutex); p11_mutex_uninit (&p11_library_mutex); } -- cgit v1.1