Bill Barker wrote:
I can get the test to finish if I synchronize around the 'Poll.poll'
statement in the Poller. However, doing this sends the perfomance right
through the floor :(. I'm guessing it's a problem with doing an add and/or
remove (most likely remove, since it hangs when test threads are finishing)
at the same time that it's in the middle of a poll.
Yes, you are correct with that.
Most APR poll implementations are not thread safe.
Think we'll need to add some sort of queue so that Poll.add,
Poll.remove are done in the same thread as Poll.poll.
If you had a faster box this probably would not be observed :).
The problem is that we are syncing .add and .remove, but the
.poll call if not thread safe can cause a problems.
I'll play with that to see how it can be done in the most
efficient way.
Regards,
Mladen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]