
28 Sep
2011
28 Sep
'11
5:02 p.m.
On 9/28/11 8:48 AM, Brett Lentz wrote:
1. Adding an optional stack_size parameter to thread::start_thread()
This is useful in Passenger's case where they want to reduce the VM size without requiring the user to hassle with ulimit settings on Linux. Passenger spawns many threads rather than using a thread pool for performance reasons.
This change is, its current form, platform-specific, but I'm working on correcting that, hopefully without a ton of ifdefs.
I would be interested in this capability but would want to see your proposed changes. We have a patch that we apply for our own purposes of adjusting the stack size but would be interested in a more general solution. Tim