On Tue, Apr 21, 2009 at 11:02:31PM +0200, Ryan Dahl <[email protected]> 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>.
=over 4
=item EIO_STACKSIZE
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
stack size.
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
--==---/ / _ \/ // /\ \/ / [email protected]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev