|
Boost : |
Subject: [boost] [thread] patch to allow custom stack size.
From: Brett Lentz (blentz_at_[hidden])
Date: 2011-11-30 11:13:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Patch and (very) rudimentary usage example is attached.
A couple months ago, I sent mail to the list looking to see if there's
interest in getting some patches merged from Phusion Passenger. (See:
http://marc.info/?t=131722868200003&r=1&w=2 )
So, here's the first patch I'd like to try to get committed. On
pthread-based systems, it allows for the user to request a custom
stack size.
This is useful in Passenger's case where they want to reduce the VM size
without requiring the user to hassle with ulimit settings.
Passenger spawns many threads rather than using a thread pool for
performance reasons. As a result of this design decision, they also
need the ability to tune the stack size.
Ticket #5956 already exists for this patch. I've verified that the
patch works against the current (1.49) codebase out of SVN.
What next steps need to be taken before this is committed?
- --
- ---Brett.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJO1lZEAAoJEEAzW/nB31+3fx4H/iulwAM7vGlZW56xsuezTXPC
6SSuYzUlkyVeCngpireVyD0+Um/ACFBM8FSf76cRnewX5449T01IycmX3fUe+z7g
DjjUCQAHJ/9pdfrqEHz0d7wZcZbeBHUm2zggdDGcn703JQSagg2Q5d5mz48RU8/J
ixTe/oAOAaXk5TQo/92fHrAmtpwfQON4tPsS7Om0kJ5vcv3PbIqQ0Q4eBKRJCVHI
/CFfc3xXwSaR1xUkwhPHtjydlIWAMo0+bdKgJE5HGnn6fQSU5jlZ+ihDyajOmM88
ueaIcWi7pa3OZwLzrUNG0xIH4m7wtk0ga8edym4+ZvuovUi4vYRA1k4dIzBOtvg=
=0dQJ
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk