diff options
author | rpj <rpj> | 1998-12-06 03:47:03 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-12-06 03:47:03 +0000 |
commit | e17bb90f17f0530bc74a3e463b8ea9eedfaae01f (patch) | |
tree | b31c98ac4be3194f015bbb0bca46143169083988 /tsd.c | |
parent | 02e7959e7ed71198a45a8fceab0076b352430764 (diff) |
Sun Dec 6 21:54:35 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* 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 'tsd.c')
-rw-r--r-- | tsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,14 +62,14 @@ pthread_key_create(pthread_key_t *key, void (*destructor)(void *)) /* CRITICAL SECTION */ pthread_mutex_lock(&_pthread_tsd_mutex); - if (_pthread_tsd_key_next >= PTHREAD_KEYS_MAX) + if (_pthread_key_virgin_next >= PTHREAD_KEYS_MAX) ret = EAGAIN; /* FIXME: This needs to be implemented as a list plus a re-use stack as for thread IDs. _pthread_destructor_run_all() then needs to be changed to push keys onto the re-use stack. */ - k = _pthread_tsd_key_next++; + k = _pthread_key_virgin_next++; _pthread_tsd_key_table[k].in_use = 0; _pthread_tsd_key_table[k].status = _PTHREAD_TSD_KEY_INUSE; |