diff options
Diffstat (limited to 'dll.c')
-rw-r--r-- | dll.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -35,20 +35,7 @@ BOOL WINAPI PthreadsEntryPoint(HINSTANCE dllHandle, break; case DLL_PROCESS_ATTACH: - /* Allocate storage for thread admin arrays. */ - _pthread_virgins = - (_pthread_t *) malloc(sizeof(_pthread_t) * PTHREAD_THREADS_MAX); - - _pthread_reuse = - (pthread_t *) malloc(sizeof(pthread_t) * PTHREAD_THREADS_MAX); - - _pthread_win32handle_map = - (pthread_t *) malloc(sizeof(pthread_t) * PTHREAD_THREADS_MAX); - - _pthread_threads_mutex_table = - (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t) * PTHREAD_THREADS_MAX); - - /* Per thread thread ID storage. */ + /* Set up per thread thread ID storage. */ _pthread_threadID_TlsIndex = TlsAlloc(); if (_pthread_threadID_TlsIndex == 0xFFFFFFFF) @@ -58,10 +45,6 @@ BOOL WINAPI PthreadsEntryPoint(HINSTANCE dllHandle, break; case DLL_PROCESS_DETACH: - free(_pthread_threads_mutex_table); - free(_pthread_win32handle_map); - free(_pthread_reuse); - free(_pthread_virgins); (void) TlsFree(_pthread_threadID_TlsIndex); break; |