summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-02-16 14:25:49 +0100
committerDaiki Ueno <ueno@gnu.org>2017-02-16 16:17:14 +0100
commit6dfa59954d882971e4516192f18319cbc75b5e4b (patch)
tree51e7b8635221814e7941f3861b764dd901155fcb
parent8594841ed349818bb8cb43a57b734a7945427c64 (diff)
library: Initialize p11_virtual_mutex for Windows
-rw-r--r--common/library.c2
1 files changed, 2 insertions, 0 deletions
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);
}