We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
WOLFTPM_NO_ACTIVE_THREAD_LS
gActiveTPM
1 parent e7aad1a commit f2e6be4Copy full SHA for f2e6be4
src/tpm2.c
@@ -37,7 +37,14 @@
37
/* --- Local Variables -- */
38
/******************************************************************************/
39
40
+
41
+#ifdef WOLFTPM_NO_ACTIVE_THREAD_LS
42
+/* if using gHwLock and want to use a shared active TPM2_CTX between threads */
43
+static TPM2_CTX* gActiveTPM;
44
+#else
45
static THREAD_LS_T TPM2_CTX* gActiveTPM;
46
+#endif
47
48
#ifndef WOLFTPM2_NO_WOLFCRYPT
49
static volatile int gWolfCryptRefCount = 0;
50
#endif
0 commit comments