This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New functions pthread_attr_[sg]et_default_np for default thread attributes


On Tue, Mar 19, 2013 at 08:18:01PM +0530, Siddhesh Poyarekar wrote:
> On Tue, Mar 19, 2013 at 09:54:30AM -0400, Rich Felker wrote:
> > I think adding any type of global state like this is harmful. Global
> > state should be removed, not added. Aside from that principle, there
> 
> I have not added any global state.  The default_attr is already
> present as a global state.  The API functions I provide to manipulate
> it don't really make the problem any worse.

heh, guess what.  The few minutes after I wrote this I realized that I
need a __initial_stacksize (which would have been __default_stacksize
earlier) global to restore the default stacksize for a forked process
:)

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]