diff options
author | rpj <rpj> | 1998-08-04 08:01:05 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-08-04 08:01:05 +0000 |
commit | 9ff4d7a4815f0e20f1dc95e9a9e91b55eee7459a (patch) | |
tree | c498419490efabb58635a95bb6d910a6f21ddc10 /implement.h | |
parent | 10f173691b6929033d5714cde8a33f4477aaba28 (diff) |
Tue Aug 4 16:57:58 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* private.c (_pthread_delete_thread): Fix typo. Add missing ';'.
* global.c (_pthread_virgins): Change types from pointer to
array pointer.
(_pthread_reuse): Ditto.
(_pthread_win32handle_map): Ditto.
(_pthread_threads_mutex_table): Ditto.
* implement.h(_pthread_virgins): Change types from pointer to
array pointer.
(_pthread_reuse): Ditto.
(_pthread_win32handle_map): Ditto.
(_pthread_threads_mutex_table): Ditto.
* private.c (_pthread_delete_thread): Fix "entry" should be "thread".
* misc.c (pthread_self): Add extern for _pthread_threadID_TlsIndex.
* global.c: Add comment.
* misc.c (pthread_once): Fix member -> dereferences.
Change _pthread_once_flag to once_control->flag in "if" test.
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/implement.h b/implement.h index f132674..4a616ec 100644 --- a/implement.h +++ b/implement.h @@ -137,18 +137,24 @@ extern pthread_mutex_t _pthread_table_mutex; extern DWORD _pthread_threads_count; -extern _pthread_t * _pthread_virgins; +/* An array of struct _pthread */ +extern _pthread_t _pthread_virgins[]; +/* Index to the next available previously unused struct _pthread */ extern int _pthread_virgin_next; -extern pthread_t * _pthread_reuse; +/* An array of pointers to struct _pthread */ +extern pthread_t _pthread_reuse[]; +/* Index to the first available reusable pthread_t. */ extern int _pthread_reuse_top; -extern pthread_t * _pthread_win32handle_map; +/* An array of pointers to struct _pthread indexed by hashing + the Win32 handle. */ +extern pthread_t _pthread_win32handle_map[]; /* Per thread mutex locks. */ -extern pthread_mutex_t * _pthread_threads_mutex_table; +extern pthread_mutex_t _pthread_threads_mutex_table[]; #endif /* _IMPLEMENT_H */ |