Elizabeth Mattijsen wrote: > At 12:18 AM 7/16/02 +0000, Stas Bekman wrote: > >> ...A few folks at p5p are creating a bunch of new modules around >> threads:: and threads::shared::, just yesterday a new module: >> Thread::Pool was released by Elizabeth Mattijsen. Which seems to be >> what's needed for Apache::DBITPool. > > > Hmmm... I guess you're right. I hadn't thought of applying > Thread::Pool in this situation, but it sure makes sense. This would > however imply that jobs would be submitted from different threads. That > _should_ work, but I just realised that I don't have a test-case for > that. Will work on one and let you know the result.
I think that's a reverse case, the pool creates the dbh items (tools) and workers pick the items use them and then put back when they are done with them. So it's the pool who creates the "things". btw, one thread should be able to pick more than one item at once. but in this particular case of DBI, I think there should be a different pool for each connectin group. similar to what Doug has suggested in his original TIPool prototype in the overview doc. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com