[eio] getaddrinfo / pthread stacksize?
schmorp at schmorp.de
Wed Apr 22 13:04:46 CEST 2009
On Tue, Apr 21, 2009 at 11:02:31PM +0200, Ryan Dahl <ry at tinyclouds.org> wrote:
> pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN < sizeof (long) * 4096
> ? sizeof (long) * 4096 : PTHREAD_STACK_MIN);
I added a patch to libeio that make sit possible to override this:
=head1 COMPILETIME CONFIGURATION
These symbols must be defined when compiling F<eio.c>.
This symbol governs the stack size for each eio thread. Libeio itself
was written to use very little stackspace, but when using C<EIO_CUSTOM>
requests, you might want to increase this.
If this symbol is undefined (the default) then libeio will use its default
stack size (C<sizeof (long) * 4096> currently). If it is defined, but
C<0>, then the default operating system stack size will be used. In all
other cases, the value must be an expression that evaluates to the desired
I didn't test it much, but it should work(tm).
Is this a viable solution?
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
More information about the libev