in reply to Parallel::ForkManager dies with "Free to wrong pool..."
how can I call a non-threadsafe module sub from multiple parallel spawned child threadsThere are no guarantees of course, but you're likely to have better results if you 'require' the problematic module within each child thread/process, rather than use/requiring it in the parent process - which causes its data to be copied to each child via thread cloning (which is how fork() is implemented on Windows perl).
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel::ForkManager dies with "Free to wrong pool..."
by perlygapes (Beadle) on Jun 15, 2018 at 01:50 UTC | |
|
Re^2: Parallel::ForkManager dies with "Free to wrong pool..."
by perlygapes (Beadle) on Jun 14, 2018 at 23:20 UTC | |
|
Re^2: Parallel::ForkManager dies with "Free to wrong pool..."
by perlygapes (Beadle) on Jun 18, 2018 at 23:02 UTC |