Opened 11 years ago

Closed 11 years ago

#5956 closed Feature Requests (duplicate)

Add optional stack_size argument to thread::start_thread()

Reported by: blentz@… Owned by: Anthony Williams
Milestone: To Be Determined Component: thread
Version: Severity: Optimization
Keywords: phusion passenger stack_size Cc: viboes

Description

The Phusion Passenger folks have added an optional argument to thread::start_thread() that I'd like to see merged into Boost.

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.

Attachments (1)

phusion_optional_stack_size.patch (7.1 KB ) - added by blentz@… 11 years ago.
Initial implementation of optional stack_size argument for thread::start_thread

Download all attachments as: .zip

Change History (7)

by blentz@…, 11 years ago

Initial implementation of optional stack_size argument for thread::start_thread

comment:1 by blentz@…, 11 years ago

I should note that the initial patch (attached) is against Boost 1.44.

comment:2 by anonymous, 11 years ago

Type: Library SubmissionsFeature Requests

comment:3 by viboes, 11 years ago

Could I close this ticket as a duplicate of #2741 proposal to manage portable and non portable thread attributes?

comment:4 by viboes, 11 years ago

Cc: viboes added

comment:5 by blentz@…, 11 years ago

That's fine by me. Thanks for working on this! :-)

comment:6 by viboes, 11 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.