apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46540] New: apr_thread_pool support doesn't allow for apr_thread customizations
Date Thu, 15 Jan 2009 15:56:33 GMT
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


Mime
View raw message