You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2009/01/15 16:56:33 UTC
DO NOT REPLY [Bug 46540] New: apr_thread_pool support doesn't allow
for apr_thread customizations
https://issues.apache.org/bugzilla/show_bug.cgi?id=46540
Summary: apr_thread_pool support doesn't allow for apr_thread
customizations
Product: APR
Version: HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: APR-util
AssignedTo: bugs@apr.apache.org
ReportedBy: Joe.Mudd@sas.com
Created an attachment (id=23129)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23129)
apr_thread_pool.h updates
The apr_thread_pool support does not currently allow for any customization of
the apr_threads created in the thread pool. This causes problems on hosts
where the default pthread stack size is not large enough to support the
execution of the submitted thread pool function.
The proposed fix, contained in the attachments, introduces a thread pool create
attributes handle. The thread pool create attributes handle has setters for
the current apr_thread_pool_create() init_threads and max_threads parameters as
well as stacksize and guardsize settings (equivalent to the apr_threadattr_t
setters).
The thread pool attribute does not include a setter for a apr_threadattr_t
instance since some of the apr_threadattr_t settings could conflict with the
thread pool needs.
A new thread pool create function, apr_thread_pool_create2(), was created to
avoid backwards compatibility issues.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46540] apr_thread_pool support doesn't allow for
apr_thread customizations
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46540
--- Comment #1 from Joe Mudd <Jo...@sas.com> 2009-01-15 07:56:53 PST ---
Created an attachment (id=23130)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23130)
apr_thread_pool.c updates
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46540] apr_thread_pool support doesn't allow for
apr_thread customizations
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46540
Bojan Smojver <bo...@rexursive.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23129|application/octet-stream |text/plain
mime type| |
Attachment #23129|0 |1
is patch| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46540] apr_thread_pool support doesn't allow for
apr_thread customizations
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46540
Bojan Smojver <bo...@rexursive.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23130|application/octet-stream |text/plain
mime type| |
Attachment #23130|0 |1
is patch| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46540] apr_thread_pool support doesn't allow for
apr_thread customizations
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46540
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #2 from Jeff Trawick <tr...@apache.org> 2010-09-27 11:46:57 EDT ---
Why not just allow an apr_threadattr_t to be provided? Then, any capabilities
added there will be reflected in apr_thread_pool with no extra effort.
Any new APIs can be added only in the unreleased 1.4.x branch or later. The
new threadpool-create function should have "_ex" instead of "2" appended to the
name.
If you're still interested in this, I suggest posting to the dev@apr mailing
list asking for feedback on which direction to go for the new feature (assuming
no other devs follow up here).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org