Using Parallel::ForkManager with ActivePerl

"Octavian Rasnita" <[email protected]> Sat, 7 Jan 2012 20:45:22 +0200
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <30EEB472E94947438572780D51EEE7EF@teddy>
Hi,

In the POD documentation of Parallel::ForkManager I read that it can share the $dbh db handle among threads, but when I tried it with ActivePerl, it gave the following error:

"DBD::mysql::db clone failed: handle 2 is owned by thread 2944fc not current thread 24475cc (handles can't be shared between threads and your driver may need a CLONE method added) at..."

Does this happen because Perl can't use threads under Windows, but only a kind of fork() as pseudo threads? ...although, Parallel::ForkManager docs say that it can also work with fork.

Thanks.

Octavian

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs