Thread safe or not, unlike a Win32::GUI object, a $dbh object can't be 
shared among more threads.
Does anyone know why? Because of DBI, of DBD::mysql, or because a database 
connection can't be shared among more threads, or something else?

Octavian

----- Original Message ----- 
From: "Charles Alderman" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, June 19, 2008 6:42 PM
Subject: Re: [perl-win32-gui-users] Avoid the appearance of a "frozen"


> To clarify my earlier comment:  DBI is considered threadsafe but some
> of the DBD's are not.
>
> Here's more info:
>
> http://search.cpan.org/~timb/DBI/DBI.pm#Threads_and_Thread_Safety
>
> As far determining which modules are or are not threadsafe, read the 
> perldocs!
>
> Thanks,
> Charles Alderman
>
> ----- Original Message -----
> From: Perl Rob <[EMAIL PROTECTED]>
> Sent: Thu, 19 Jun 2008 08:52:30 -0600
> Re: Re: [perl-win32-gui-users] Avoid the appearance of a "frozen"
>
>
>
>> Thanks for all the great responses! I changed my code so that each GUI
>> handle is managed only by the thread that created it. This works
>> perfect--and has eliminated all the crasing I was seeing!
>>
>> As a follow-up question, how do you know *for sure* which modules are not
>> thread-safe? For example, I wouldn't have guessed that DBI isn't thread
>> safe.
>>
>> Thanks again,
>> Rob
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Perl-Win32-GUI-Users mailing list
>> Perl-Win32-GUI-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>> http://perl-win32-gui.sourceforge.net/
>>
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> http://perl-win32-gui.sourceforge.net/ 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to