summaryrefslogtreecommitdiff
path: root/dll.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-08-06 08:32:53 +0000
committerrpj <rpj>1998-08-06 08:32:53 +0000
commit9b0e93aa59205fa6e35f0d8e5c2065c6e806f114 (patch)
tree229bda74f9892a8f7bf12693be7d029d98aac87b /dll.c
parentf1f8c6bef1563b8752967631ad024953584964d7 (diff)
*** empty log message ***
Diffstat (limited to 'dll.c')
-rw-r--r--dll.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/dll.c b/dll.c
index 4809b2b..5900ed9 100644
--- a/dll.c
+++ b/dll.c
@@ -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;