mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-11 12:10:50 +03:00
* allocatestack.c (queue_stack): Move freeing of surplus stacks to...
(free_stacks): ...here. (__free_stack_cache): New function. * pthreadP.h: Declare __free_stack_cache. * sysdeps/pthread/pthread-functions.h (pthread_functions): Add ptr_freeres. * init.c (pthread_functions): Initialize ptr_freeres. * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libptread): New freeres function.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@@ -57,3 +57,9 @@ __libc_pthread_init (ptr, reclaim, functions)
|
||||
return &__libc_multiple_threads;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
libc_freeres_fn (freeres_libptread)
|
||||
{
|
||||
__libc_pthread_functions.ptr_freeres ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user