Java Mailing List Archive

http://www.junlu.com/

Home » dev.tomcat »

AprEndpoint Runnable->Thread fixes

Mladen Turk

2010-09-03


Author LoginPost Reply
Hi,

I changed the Poller, Sendfile and Acceptor classes to
extend the Thread instead just implement Runnable.

Now, that was the easy hack cause we really don't
need to extend the Thread behavior for those classes
so might no be an optimal solution.

In essence we need to wait on each of those threads
on edpoint destroy(), so we can safely call the APR
terminate ensuring those classes won't call any of the
APR methods afterwards.

If extending Thread is wrong we could add separate
Thread[] array or new interface extending Runnable
which could store the Thread instance so we do a join().

Comments?

Regards
--
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.