On Tue, Nov 04, 2003 at 01:50:23AM +0100, Peter J. Holzer wrote:
> On 2003-11-03 15:37:59 +0000, Tim Bunce wrote:
> > Looks like the problem is related to the old thread support in perl
> > (known as 5.005threads, which was fataly flawed and now replaced by iThreads).
> > 
> > I think DBI 1.32 was the last version tested to work with 5.005threads.
> 
> Which reminds me: The DBI FAQ at
> http://search.cpan.org/~timb/DBI-1.38/lib/DBI/FAQ.pm#5.1_Can_I_do_multi-threading_with_DBI?
> states:
> 
> | 5.1 Can I do multi-threading with DBI?
> | 
> | Perl version 5.005 and later can be built to support multi-threading.
> | The DBI, as of version 1.02, does not yet support multi-threading so it
> | would be unsafe to let more than one thread enter the DBI at the same
> | time.
> | 
> | It is expected that some future version of the DBI will at least be
> | thread-safe (but not thread-hot) by automatically blocking threads
> | intering the DBI while it's already in use.
> 
> This does seem to be a bit out of date.

As is much of DBI::FAQ. There's an on-line FAQ at dbi.perl.org but
it probably doesn't mention threads. The FAQ's need to be merged
and updated.

> > If you do need threads then be aware that 5.005threads is *full*
> > of problems (that won't be fixed) so upgrading perl is best.
> 
> Does that mean that the "future version of the DBI" mentioned above has
> arrived and DBI is safe to use with iThreads? 

Yes, for some value of "safe". There may still be problems but I'm
not aware of any in the DBI itself.

Tim.

Reply via email to