summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/private.c b/private.c
index 8424277..44afd4f 100644
--- a/private.c
+++ b/private.c
@@ -23,16 +23,17 @@
*/
int
-_pthread_new_thread_entry(pthread_t thread, _pthread_threads_thread_t * entry)
+_pthread_new_thread_entry(_pthread_t * entry)
{
- _pthread_threads_thread_t * new;
+ _pthread_t new;
if (_pthread_threads_count >= PTHREAD_THREADS_MAX)
{
return EAGAIN;
}
- new = &_pthread_threads_table[_PTHREAD_HASH_INDEX(thread)];
+ /* Use a preloaded reuse stack of pthread_t. */
+ new =
while (new->thread != NULL)
{