This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] New functions pthread_attr_[sg]et_default_np for default thread attributes
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>, libc-alpha at sourceware dot org
- Date: Wed, 29 May 2013 15:42:22 -0700 (PDT)
- Subject: Re: [PATCH] New functions pthread_attr_[sg]et_default_np for default thread attributes
- References: <20130314122003 dot GY22471 at spoyarek dot pnq dot redhat dot com> <20130314154905 dot ADDDD2C09C at topped-with-meat dot com> <20130315043154 dot GG22471 at spoyarek dot pnq dot redhat dot com> <20130318222239 dot 7A2712C084 at topped-with-meat dot com> <CAAHN_R13bRF0UY_XZ7Rj6tSeSgq8c_0j4bbEH6m9BbGD32EycQ at mail dot gmail dot com> <20130528220730 dot 33C262C06F at topped-with-meat dot com> <20130529065138 dot GF2145 at spoyarek dot pnq dot redhat dot com>
> Most attribute values will be the same for created threads, but not
> for the main thread.
In a test of pthread_setattr_default_np, nothing about the initial thread
is relevant.
> Stack size may not always be the same since it may in some cases get
> adjusted to a larger value during thread creation, resulting in
> pthread_getattr_np reporting a larger value than
> pthread_getattr_default_np.
Surely in a controlled test you can pick a size where this won't happen.
> OK, I'll expand coverage of the test.
[...]
> OK, I'll change the names to pthread_[gs]etattr_default_np.
Great.
Thanks,
Roland