|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Is Net::SSH::Expect a thread-safe module?by Anonymous Monk |
| on Jan 26, 2012 at 01:29 UTC ( #950005=note: print w/ replies, xml ) | Need Help?? |
|
I didn't find this information in the module description even. This probably means it is not thread-safe However, Net::SSH::Expect is pure-perl, this probably means it is thread-safe, it depends on the dependencies Expect is a dependency, so the question, is Expect thread-safe http://search.cpan.org/dist/Expect/Expect.pod#Is_it_possible_to_use_threads_with_Expect? Basically yes, with one restriction: you must spawn() your programs in the main thread and then pass the Expect objects to the handling threads. So yeah, Net::SSH::Expect is probably thread safe see also ?node_id=3989;HIT=thread%20safe;re=N
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||