diff options
author | rpj <rpj> | 1998-10-14 19:51:06 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-10-14 19:51:06 +0000 |
commit | 424ca52423ca124e4618e0e7a0dba22ea989ef09 (patch) | |
tree | b63bdf933f381923fe99a09177c4acd07496f5bb /global.c | |
parent | 8c4d7f6bc1d365906724c92e4143fa021bf8a757 (diff) |
Thu Oct 15 11:53:21 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* global.c (_pthread_tsd_key_table): Fix declaration.
* implement.h(_pthread_TSD_keys_TlsIndex): Add missing extern.
(_pthread_tsd_mutex): Ditto.
* create.c (_pthread_start_call): Fix "keys" array declaration.
Add comment.
* tsd.c (pthread_setspecific): Fix type declaration and cast.
(pthread_getspecific): Ditto.
* cleanup.c (_pthread_destructor_run_all): Declare missing loop
counter.
Diffstat (limited to 'global.c')
-rw-r--r-- | global.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -11,13 +11,17 @@ #include "pthread.h" #include "implement.h" -/* Making these constants will mean that applications remain binary - compatible between versions of the DLL. */ +/* POSIX run-time invariant values. (Currently POSIX minimum values) + + Making these constants will mean that applications remain binary + compatible between versions of the DLL. + + FIXME: There are still places in the package that break this. +*/ -/* POSIX run-time invariant values. (Currently POSIX minimum values) */ const int _POSIX_THREAD_THREADS_MAX = _PTHREAD_MAX_THREADS; const int _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4; -const int _POSIX_THREAD_KEYS_MAX = 128; +const int _POSIX_THREAD_KEYS_MAX = _PTHREAD_MAX_KEYS; const int _pthread_create_joinable = 0; @@ -58,7 +62,7 @@ pthread_t _pthread_win32handle_map[_PTHREAD_MAX_THREADS]; pthread_mutex_t _pthread_threads_mutex_table[_PTHREAD_MAX_THREADS]; /* Global TSD key array. */ -_pthread_tsd_key_t _pthread_tsd_key_table[_POSIX_THREAD_KEYS_MAX]; +_pthread_tsd_key_t _pthread_tsd_key_table[_PTHREAD_MAX_KEYS]; /* Mutex lock for TSD operations */ pthread_mutex_t _pthread_tsd_mutex = PTHREAD_MUTEX_INITIALIZER; |