apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Jen <henry...@ztune.net>
Subject Re: API Proposal for apr_thread_pool
Date Thu, 06 Apr 2006 06:07:12 GMT
Henry Jen wrote:
> William A. Rowe, Jr. wrote:
>> Henry Jen wrote:
> 
>>> /**
>>>  * Stop all unused threads. Ignore the maximum number of idling threads.
>>>  * @return The total number of threads stopped.
>>>  */
>>> APR_DECLARE(int) apr_thread_pool_stop_unused_threads(void);
>>
>> I'm a little confused in your proposal between 
>> apr_thread_pool_terminate(),
>> apr_thread_pool_destroy(), and this function.
>>
>> Can't this be reduced to
>>
> 
> My mistake. The last couple functions should take a apr_thread_pool_t 
> *self as a parameter. Those are instance methods, not static.
> 

Another thing is that the initialize/terminate may not be needed. I put 
it there for now in case some thing I have overlooked.

Cheers,
Henry

Mime
View raw message