Now came the requirement for threading. this said object creates threads as workers.
To my suprize, I found out that the object itself is being copied to the worker threads, and destroyed then they are destroyed.
How can it be? I scanned my code, and I don't keep this object ref inside Perl, but in SV* on the C side. I thought that it is completely safe there.
How do I protect my SVs so Perl won't duplicate them when it create a thread?
(in perl it's easy. just make sure it's not a global)
Thanks,
Shmuel.
In reply to Protecting External Data?! by semuel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |