mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Make pthread_attr_t dynamically extensible
This introduces the function __pthread_attr_extension to allocate the extension space, which is freed by pthread_attr_destroy. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -884,7 +884,7 @@ __pthread_create_2_0 (pthread_t *newthread, const pthread_attr_t *attr,
|
||||
new_attr.guardsize = ps;
|
||||
new_attr.stackaddr = NULL;
|
||||
new_attr.stacksize = 0;
|
||||
new_attr.cpuset = NULL;
|
||||
new_attr.extension = NULL;
|
||||
|
||||
/* We will pass this value on to the real implementation. */
|
||||
attr = (pthread_attr_t *) &new_attr;
|
||||
|
Reference in New Issue
Block a user