summaryrefslogtreecommitdiff
path: root/global.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 /global.c
parentf1f8c6bef1563b8752967631ad024953584964d7 (diff)
*** empty log message ***
Diffstat (limited to 'global.c')
-rw-r--r--global.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/global.c b/global.c
index 2914fb7..0835f48 100644
--- a/global.c
+++ b/global.c
@@ -15,7 +15,7 @@
compatible between versions of the DLL. */
/* POSIX run-time invariant values. (Currently POSIX minimum values) */
-const int _POSIX_THREAD_THREADS_MAX = 128;
+const int _POSIX_THREAD_THREADS_MAX = _PTHREAD_MAX_THREADS;
const int _POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4;
const int _POSIX_THREAD_KEYS_MAX = 128;
@@ -42,21 +42,21 @@ DWORD _pthread_threads_count = 0;
/* Per thread management storage. See comments in private.c */
/* An array of struct _pthread */
-_pthread_t _pthread_virgins[];
+_pthread_t _pthread_virgins[_PTHREAD_MAX_THREADS];
/* Index to the next available previously unused struct _pthread */
int _pthread_virgin_next = 0;
/* An array of pointers to struct _pthread */
-pthread_t _pthread_reuse[];
+pthread_t _pthread_reuse[_PTHREAD_MAX_THREADS];
/* Index to the first available reusable pthread_t. */
int _pthread_reuse_top = -1;
/* An array of pointers to struct _pthread indexed by hashing
the Win32 handle. */
-pthread_t _pthread_win32handle_map[];
+pthread_t _pthread_win32handle_map[_PTHREAD_MAX_THREADS];
/* Per thread mutex locks. */
-pthread_mutex_t _pthread_threads_mutex_table[];
+pthread_mutex_t _pthread_threads_mutex_table[_PTHREAD_MAX_THREADS];