summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-12-06 04:42:29 +0000
committerrpj <rpj>1998-12-06 04:42:29 +0000
commita7d47499d89932fa74932fef5af9b046227788de (patch)
tree986bad2b5ee7b52cabff02d0620980315ed6c8b1 /global.c
parente17bb90f17f0530bc74a3e463b8ea9eedfaae01f (diff)
Sun Dec 6 21:54:35 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* buildlib.bat: Fix args to CL when building the .DLL * cleanup.c (_pthread_destructor_run_all): Fix TSD key management. This is a tidy-up before TSD and Thread management is completely replaced by John Bossom's much more elegant code. * tsd.c (pthread_key_create): Fix TSD key management. * global.c (_pthread_key_virgin_next): Initialise. * build.bat: New DOS script to compile and link a pthreads app using Microsoft's CL compiler linker. * buildlib.bat: New DOS script to compile all the object files and create pthread.lib and pthread.dll using Microsoft's CL compiler linker.
Diffstat (limited to 'global.c')
-rw-r--r--global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/global.c b/global.c
index e3af52d..a2ca988 100644
--- a/global.c
+++ b/global.c
@@ -74,7 +74,7 @@ int _pthread_tsd_key_next = 0;
pthread_key_t _pthread_key_virgins[_PTHREAD_MAX_KEYS];
/* Index to the next available previously unused pthread_key_t */
-int _pthread_key_virgin_next;
+int _pthread_key_virgin_next = 0;
/* An array of pthread_key_t */
pthread_key_t _pthread_key_reuse[_PTHREAD_MAX_KEYS];