Browse Source
Merge pull request #1942 from martin-frbg/issue1720
Delete the pthread key on cleanup in TLS mode
tags/v0.3.5
Martin Kroeker
GitHub
7 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
driver/others/memory.c
|
|
|
@@ -1073,6 +1073,11 @@ static volatile int memory_initialized = 0; |
|
|
|
} |
|
|
|
free(table); |
|
|
|
} |
|
|
|
#if defined(OS_WINDOWS) |
|
|
|
TlsFree(local_storage_key); |
|
|
|
#else |
|
|
|
pthread_key_delete(local_storage_key); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
static void blas_memory_init(){ |
|
|
|
|